Enum DataType

  • All Implemented Interfaces:
    java.io.Serializable , kotlin.Comparable

    
    public enum DataType
    extends Enum<DataType>
                        

    Possible data types that can be used in Data objects.

    Since:

    2.0

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class DataType.Companion
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      NONE

      Empty data block. Usually used for request frames; code = 0x00

      BOOL

      Boolean typ. 1 for true, 0 for false; code = 0x01

      CHAR8

      Contains a 1byte number; code = 0x02

      UCHAR8

      Contains a 1byte number (unsigned); code = 0x03

      INT16

      Contains a 2byte number; code = 0x04

      UINT16

      Contains a 2byte number; code = 0x05

      INT32

      Contains a 4byte number; code = 0x06

      UINT32

      Contains a 4byte number (unsigned); code = 0x07

      INT64

      Contains a 8byte number; code = 0x08

      UINT64

      Contains a 8byte number (unsigned); code = 0x09

      FLOAT32

      Contains a 4byte floating point number; code = 0x0A

      DOUBLE64

      Contains a 8byte floating point number; code = 0x0B

      BITFIELD

      Unknown, 1byte long. It seems never to be used. According to the name it gives a bit pattern; code = 0x0C

      STRING

      UTF-8 (I think ...) encoded text; code = 0x0D

      CONTAINER

      A block that contains other blocks; code = 0x0E

      TIMESTAMP

      A timestamp since 01.01.1970 00:00h UTC in seconds and nanoseconds; code = 0x0F

      BYTEARRAY

      Binary data; code = 0x10

      ERROR

      Transmits error codes; code = 0xFF

      UNKNOWN

      Not an official E3DC DataType. Used to represent Unknown types; code = 0xFE

    • Method Summary

      Modifier and Type Method Description
      final Boolean isByteType() Checks if the type is a valid Byte type.
      final Boolean isShortType() Checks if the type is a valid Short type.
      final Boolean isIntType() Checks if the type is a valid Int type.
      final Boolean isLongType() Checks if the type is a valid Long type.
      final DataType valueOf(String value) Returns the enum constant of this type with the specified name.
      final Array<DataType> values() Returns an array containing the constants of this enum type, in the order they're declared.
      final Byte getCode()
      final EnumEntries<DataType> getEntries() Possible data types that can be used in Data objects.
      • Methods inherited from class kotlin.Enum

        getName, getOrdinal
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail