public static enum RandomString.RandomStrings extends Enum<RandomString.RandomStrings> implements RandomString
RandomString.RandomStringImpl, RandomString.RandomStrings
Enum Constant and Description |
---|
RANDOM_BASE62
随机生成BASE62字符串.
|
Modifier and Type | Method and Description |
---|---|
String |
generate(int length) |
static RandomString.RandomStrings |
valueOf(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(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 generate(int length)
generate
in interface RandomString
Copyright © 2017. All rights reserved.