public enum RandomType extends Enum<RandomType>
| Modifier and Type | Method and Description |
|---|---|
byte |
random(Random random)
生成随机数
|
static RandomType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RandomType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RandomType INT
public static final RandomType STRING
public static final RandomType ALL
public static RandomType[] values()
for (RandomType c : RandomType.values()) System.out.println(c);
public static RandomType 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 byte random(Random random)
random - randomCopyright © 2024. All rights reserved.