Enum Class DecoderValueKind
- All Implemented Interfaces:
Serializable, Comparable<DecoderValueKind>, Constable
Internal marker for serdes that map directly to one scalar value method.
- Since:
- 3.1
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInternal marker for serdes that expose the direct scalar value kind.Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final byte -
Method Summary
Modifier and TypeMethodDescriptionbytecode()Returns a compact scalar kind code for hot-path storage.static DecoderValueKindReturns the enum constant of this class with the specified name.static DecoderValueKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No direct decoder scalar method. -
STRING
A string value. -
BOOLEAN
A boolean value. -
INT
Anintvalue. -
LONG
Alongvalue. -
FLOAT
Afloatvalue. -
DOUBLE
Adoublevalue. -
BYTE
Abytevalue. -
SHORT
Ashortvalue. -
CHAR
Acharvalue.
-
-
Field Details
-
NONE_CODE
public static final byte NONE_CODE- See Also:
-
STRING_CODE
public static final byte STRING_CODE- See Also:
-
BOOLEAN_CODE
public static final byte BOOLEAN_CODE- See Also:
-
INT_CODE
public static final byte INT_CODE- See Also:
-
LONG_CODE
public static final byte LONG_CODE- See Also:
-
FLOAT_CODE
public static final byte FLOAT_CODE- See Also:
-
DOUBLE_CODE
public static final byte DOUBLE_CODE- See Also:
-
BYTE_CODE
public static final byte BYTE_CODE- See Also:
-
SHORT_CODE
public static final byte SHORT_CODE- See Also:
-
CHAR_CODE
public static final byte CHAR_CODE- See Also:
-
-
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
-
code
public byte code()Returns a compact scalar kind code for hot-path storage.- Returns:
- The scalar kind code
-