Class DBusStruct

java.lang.Object
com.lucimber.dbus.type.DBusStruct
All Implemented Interfaces:
DBusContainerType, DBusType

public final class DBusStruct extends Object implements DBusContainerType
A struct that can hold various objects. The order of the objects is given.
  • Constructor Details

  • Method Details

    • getSignature

      public DBusSignature getSignature()
      Gets the signature of the values of this struct.
      Specified by:
      getSignature in interface DBusContainerType
      Returns:
      a DBusSignature
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getType

      public Type getType()
      Description copied from interface: DBusType
      Gets the type of this implementation.
      Specified by:
      getType in interface DBusType
      Returns:
      a Type
    • getDelegate

      public List<DBusType> getDelegate()
      Description copied from interface: DBusContainerType
      Gets the wrapped value of this container type. The D-Bus type system is made of ASCII characters representing the value's type. Each D-Bus data type is mapped in this framework by its corresponding class. This method enables the access to the Java's data type - the delegate. If this container is for example a DBusArray, the returned object will be a List.
      Specified by:
      getDelegate in interface DBusContainerType
      Returns:
      an Object