public static enum RandomString.RandomStrings extends java.lang.Enum<RandomString.RandomStrings> implements RandomString
RandomString.RandomStringImpl, RandomString.RandomStrings| Enum Constant and Description |
|---|
RANDOM_BASE62
随机生成BASE62字符串.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
generate(int length) |
static RandomString.RandomStrings |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RandomString.RandomStrings[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RandomString.RandomStrings RANDOM_BASE62
public static RandomString.RandomStrings[] values()
for (RandomString.RandomStrings c : RandomString.RandomStrings.values()) System.out.println(c);
public static RandomString.RandomStrings valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String generate(int length)
generate in interface RandomString