Package com.lucimber.dbus.type
Class DBusStruct
java.lang.Object
com.lucimber.dbus.type.DBusStruct
- All Implemented Interfaces:
DBusContainerType
,DBusType
A struct that can hold various objects. The order of the objects is given.
-
Constructor Summary
ConstructorsConstructorDescriptionDBusStruct
(DBusSignature signature, DBusType... values) Constructs a new struct with the signature of the values.DBusStruct
(DBusSignature signature, List<DBusType> types) Constructs a new struct with mandatory parameter. -
Method Summary
-
Constructor Details
-
DBusStruct
Constructs a new struct with the signature of the values.- Parameters:
signature
- aDBusSignature
values
- one or manyObject
s
-
DBusStruct
Constructs a new struct with mandatory parameter.- Parameters:
signature
- aDBusSignature
types
- aList
ofDBusType
s
-
-
Method Details
-
getSignature
Gets the signature of the values of this struct.- Specified by:
getSignature
in interfaceDBusContainerType
- Returns:
- a
DBusSignature
-
toString
-
getType
Description copied from interface:DBusType
Gets the type of this implementation. -
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 aDBusArray
, the returned object will be aList
.- Specified by:
getDelegate
in interfaceDBusContainerType
- Returns:
- an
Object
-