Package | Description |
---|---|
com.auxiliary.tool.data |
Modifier and Type | Method and Description |
---|---|
static StringMode |
StringMode.judgeMode(String text)
该方法用于根据指定的字符串,判断其在哪类枚举中,并返回查找到的枚举值
|
static StringMode |
StringMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StringMode[] |
StringMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
RandomString |
RandomString.addMode(boolean isRepeat,
StringMode... stringModes)
用于向字符串池中添加模型,且通过isRepeat进行判断是否允许添加可重复的字符串进入字符串池
|
RandomString |
RandomString.addMode(StringMode... stringModes)
用于向字符串池中添加模型,通过该方法添加的模型将不检查字符串池中是否存在与之重复的元素
|
static String |
RandomString.randomString(int minLength,
int maxLength,
StringMode... stringModes)
用于简单返回随机字符串。下标规则可参考
RandomString.toString(int, int) 方法 |
Constructor and Description |
---|
RandomString(int defaultMinLength,
int defaultMaxLength,
StringMode... stringModes)
通过预设模型模型对字符串池进行初始化,并初始化默认输出的字符串长度
|
RandomString(StringMode... stringModes)
通过预设模型模型对字符串池进行初始化
|
Copyright © 2024. All rights reserved.