public enum StringMode extends Enum<StringMode>
Enum Constant and Description |
---|
ALL
向字符串池中添加数字、大写字母以及小写字母
|
AREA
向字符串池中添加地区名称缩写
|
CAP
向字符串池中添加所有大写字母
|
CH
用于生成部分汉字。注意,该方法会将1000个汉字放入字符串种子中
|
LOW
向字符串池中添加所有小写字母
|
NUM
向字符串池中添加数字0-9
|
SURNAME
用于生成部分姓氏(无法生成两个字的姓氏)
|
Modifier and Type | Method and Description |
---|---|
String |
getSeed()
返回字符串种子
|
static StringMode |
judgeMode(String text)
该方法用于根据指定的字符串,判断其在哪类枚举中,并返回查找到的枚举值
|
static StringMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StringMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StringMode NUM
public static final StringMode CAP
public static final StringMode LOW
public static final StringMode ALL
public static final StringMode AREA
public static final StringMode SURNAME
public static final StringMode CH
public static StringMode[] values()
for (StringMode c : StringMode.values()) System.out.println(c);
public static StringMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getSeed()
public static StringMode judgeMode(String text)
text
- 判定文本Copyright © 2024. All rights reserved.