Enum Java8Constants
- java.lang.Object
-
- java.lang.Enum<Java8Constants>
-
- io.github.pr0methean.betterrandom.util.Java8Constants
-
- All Implemented Interfaces:
Serializable
,Comparable<Java8Constants>
public enum Java8Constants extends Enum<Java8Constants>
-
-
Field Summary
Fields Modifier and Type Field Description static int
INT_BYTES
static int
LONG_BYTES
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Java8Constants
valueOf(String name)
Returns the enum constant of this type with the specified name.static Java8Constants[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Field Detail
-
LONG_BYTES
public static final int LONG_BYTES
- See Also:
- Constant Field Values
-
INT_BYTES
public static final int INT_BYTES
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Java8Constants[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Java8Constants c : Java8Constants.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Java8Constants valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-