public enum RandomAlgorithm extends Enum<RandomAlgorithm>
RandomAlgorithm holds the algorithm for calculate random values| Enum Constant and Description |
|---|
MATH_ABS
The algorithm with
Math#abs method |
MATH_RANDOM
The algorithm with
Math#random method |
RANDOM
The algorithm with
Random class |
SECURE_RANDOM
The algorithm with
SecureRandom class |
| Modifier and Type | Method and Description |
|---|---|
static RandomAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RandomAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RandomAlgorithm MATH_ABS
Math#abs methodpublic static final RandomAlgorithm MATH_RANDOM
Math#random methodpublic static final RandomAlgorithm RANDOM
Random classpublic static final RandomAlgorithm SECURE_RANDOM
SecureRandom classpublic static RandomAlgorithm[] values()
for (RandomAlgorithm c : RandomAlgorithm.values()) System.out.println(c);
public static RandomAlgorithm 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 nullCopyright © 2015–2019 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.