Enum Class ArrayKind
- All Implemented Interfaces:
Serializable, Comparable<ArrayKind>, Constable
Element category of an array field, reported to a
Visitor via
Visitor.arrayBegin(int, ArrayKind, int) just before the elements are delivered.
A fixlen array names its concrete element subtype (FP32 /
FP64), never a collapsed "floating point" category: CORELIB_PLAN §4.8
has the element subtype decide whether a field contradicts the schema and must
be skipped (MESSAGE_SPEC §7.3), so the subtype has to reach the visitor. The
ordinals are normative across the family: UNSIGNED = 0,
SIGNED = 1, FP32 = 2, FP64 = 3.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIEEE-754 32-bit float elements, delivered throughVisitor.fp32(int, float).IEEE-754 64-bit double elements, delivered throughVisitor.fp64(int, double).Signed-integer elements, delivered throughVisitor.signed(int, long).Unsigned-integer elements, delivered throughVisitor.unsigned(int, long). -
Method Summary
-
Enum Constant Details
-
UNSIGNED
Unsigned-integer elements, delivered throughVisitor.unsigned(int, long). -
SIGNED
Signed-integer elements, delivered throughVisitor.signed(int, long). -
FP32
IEEE-754 32-bit float elements, delivered throughVisitor.fp32(int, float). -
FP64
IEEE-754 64-bit double elements, delivered throughVisitor.fp64(int, double).
-
-
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
-