Enum Class TypeCode

java.lang.Object
java.lang.Enum<TypeCode>
com.lucimber.dbus.type.TypeCode
All Implemented Interfaces:
Serializable, Comparable<TypeCode>, Constable

public enum TypeCode extends Enum<TypeCode>
Represents the type codes of the data types that are used by D-Bus. Each type code is represented by a character defined in the encoding standard ASCII.
See Also:
  • Enum Constant Details

    • BYTE

      public static final TypeCode BYTE
    • BOOLEAN

      public static final TypeCode BOOLEAN
    • INT16

      public static final TypeCode INT16
    • UINT16

      public static final TypeCode UINT16
    • INT32

      public static final TypeCode INT32
    • UINT32

      public static final TypeCode UINT32
    • INT64

      public static final TypeCode INT64
    • UINT64

      public static final TypeCode UINT64
    • DOUBLE

      public static final TypeCode DOUBLE
    • STRING

      public static final TypeCode STRING
    • OBJECT_PATH

      public static final TypeCode OBJECT_PATH
    • SIGNATURE

      public static final TypeCode SIGNATURE
    • ARRAY

      public static final TypeCode ARRAY
    • STRUCT_START

      public static final TypeCode STRUCT_START
    • STRUCT_END

      public static final TypeCode STRUCT_END
    • VARIANT

      public static final TypeCode VARIANT
    • DICT_ENTRY_START

      public static final TypeCode DICT_ENTRY_START
    • DICT_ENTRY_END

      public static final TypeCode DICT_ENTRY_END
    • UNIX_FD

      public static final TypeCode UNIX_FD
  • Method Details

    • values

      public static TypeCode[] 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

      public static TypeCode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getChar

      public char getChar()
      Gets the char of this type code.
      Returns:
      a Character