Enum DataType

    • Enum Constant Detail

      • BOOLEAN

        public static final DataType BOOLEAN
        Boolean 1-byte
      • BYTE

        public static final DataType BYTE
        Signed 1-byte
      • U1

        public static final DataType U1
        Unsigned 1-byte
      • SHORT

        public static final DataType SHORT
        Signed 2-byte
      • U2

        public static final DataType U2
        Unsigned 2-byte
      • INTEGER

        public static final DataType INTEGER
        Signed 4-byte
      • U4

        public static final DataType U4
        Unsigned 4-byte
      • LONG

        public static final DataType LONG
        Signed 8-byte
      • U8

        public static final DataType U8
        Unsigned 8-byte
      • FLOAT

        public static final DataType FLOAT
        32-bit floating point
      • DOUBLE

        public static final DataType DOUBLE
        64-bit floating point
      • UTF8

        public static final DataType UTF8
        Character data in UTF-8 format,
      • STRING

        public static final DataType STRING
        character data in 16-bit Unicode
      • ARRAY

        public static final DataType ARRAY
        Array of primitives
      • STRUCT

        public static final DataType STRUCT
        Complex type
      • STRUCTARRAY

        public static final DataType STRUCTARRAY
        Array of complex types
    • Method Detail

      • values

        public static DataType[] 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 (DataType c : DataType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DataType 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 name
        NullPointerException - if the argument is null
      • getSize

        public int getSize()
      • isPrimitive

        public boolean isPrimitive()
      • isTextual

        public boolean isTextual()
      • isNumeric

        public boolean isNumeric()