Enum DataType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<DataType>

    public enum DataType
    extends java.lang.Enum<DataType>
    DataType representing the available data types in a flight recording.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ARRAY
      Array of primitives
      BOOLEAN
      Boolean 1-byte
      BYTE
      Signed 1-byte
      DOUBLE
      64-bit floating point
      FLOAT
      32-bit floating point
      INTEGER
      Signed 4-byte
      LONG
      Signed 8-byte
      SHORT
      Signed 2-byte
      STRING
      character data in 16-bit Unicode
      STRUCT
      Complex type
      STRUCTARRAY
      Array of complex types
      U1
      Unsigned 1-byte
      U2
      Unsigned 2-byte
      U4
      Unsigned 4-byte
      U8
      Unsigned 8-byte
      UTF8
      Character data in UTF-8 format,
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean m_numeric  
      private int m_size  
      private boolean m_textual  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private DataType​(int size, boolean numeric, boolean textual)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getSize()  
      boolean isNumeric()  
      boolean isPrimitive()  
      boolean isTextual()  
      static DataType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static DataType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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
    • Field Detail

      • m_size

        private final int m_size
      • m_textual

        private final boolean m_textual
      • m_numeric

        private final boolean m_numeric
    • Constructor Detail

      • DataType

        private DataType​(int size,
                         boolean numeric,
                         boolean textual)
    • 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​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getSize

        public int getSize()
      • isPrimitive

        public boolean isPrimitive()
      • isTextual

        public boolean isTextual()
      • isNumeric

        public boolean isNumeric()