Enum Class PrimitiveTypeCodec
- All Implemented Interfaces:
Serializable,Comparable<PrimitiveTypeCodec>,Constable
Primitive types in type system.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSingle byte character encoding in ASCII.64-bit double precision floating point.32-bit single precision floating point.16-bit signed integer.32-bit signed integer.64-bit signed integer.8-bit signed integer.No type is provided.To be used to represent not present or null.16-bit unsigned integer.32-bit unsigned integer.64-bit unsigned integer.8-bit unsigned integer. -
Method Summary
Modifier and TypeMethodDescriptionstatic PrimitiveTypeCodecget(short value) Lookup the enum value representing the value.shortvalue()The raw encoded value in the Java type representation.static PrimitiveTypeCodecReturns the enum constant of this class with the specified name.static PrimitiveTypeCodec[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No type is provided. -
CHAR
Single byte character encoding in ASCII. -
INT8
8-bit signed integer. -
INT16
16-bit signed integer. -
INT32
32-bit signed integer. -
INT64
64-bit signed integer. -
UINT8
8-bit unsigned integer. -
UINT16
16-bit unsigned integer. -
UINT32
32-bit unsigned integer. -
UINT64
64-bit unsigned integer. -
FLOAT
32-bit single precision floating point. -
DOUBLE
64-bit double precision floating point. -
NULL_VAL
To be used to represent not present or null.
-
-
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
-
value
public short value()The raw encoded value in the Java type representation.- Returns:
- the raw value encoded.
-
get
Lookup the enum value representing the value.- Parameters:
value- encoded to be looked up.- Returns:
- the enum value representing the value.
-