Package dev.quantumfusion.hyphen
Enum Class Options
- All Implemented Interfaces:
Serializable,Comparable<Options>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCompacts 8 booleans into a single byteDisables theHyphenSerializer.get(IOInterface)Method.Disables theHyphenSerializer.measure(Object)Method.Disables theHyphenSerializer.put(IOInterface, Object)(Object, Object)} Method.Use a much faster allocation method for a serializer.Uses short but cryptic method names.Uses short but cryptic variable names. -
Field Summary
Fields -
Method Summary
-
Enum Constant Details
-
DISABLE_PUT
Disables theHyphenSerializer.put(IOInterface, Object)(Object, Object)} Method. Usage will result in aUnsupportedOperationException -
DISABLE_GET
Disables theHyphenSerializer.get(IOInterface)Method. Usage will result in aUnsupportedOperationException -
DISABLE_MEASURE
Disables theHyphenSerializer.measure(Object)Method. Usage will result in aUnsupportedOperationException -
COMPACT_BOOLEANS
Compacts 8 booleans into a single byte -
SHORT_METHOD_NAMES
Uses short but cryptic method names. Most method will be named "_" -
SHORT_VARIABLE_NAMES
Uses short but cryptic variable names. Most variables will be named "_" -
FAST_ALLOC
Use a much faster allocation method for a serializer.
Might bring issues if someone is messing with internals.
-
-
Field Details
-
STRING_ENCODING
- See Also:
- Constant Field Values
-
STRING_UTF8
- See Also:
- Constant Field Values
-
STRING_UTF16
- See Also:
- Constant Field Values
-
ARRAY_LENGTH_TYPE
- See Also:
- Constant Field Values
-
BYTE
- See Also:
- Constant Field Values
-
SHORT
- See Also:
- Constant Field Values
-
INT
- See Also:
- Constant Field Values
-
defaultValue
public final boolean defaultValue
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-