Package com.lucimber.dbus.type
Class DBusVariant
java.lang.Object
com.lucimber.dbus.type.DBusVariant
- All Implemented Interfaces:
DBusContainerType
,DBusType
Variants may contain a value of any type. The marshalled value of the variant includes the D-Bus
signature defining the type of data it contains.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the wrapped value of this container type.Gets the signature of this container type.getType()
Gets the type of this implementation.int
hashCode()
toString()
static DBusVariant
-
Method Details
-
valueOf
-
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
-
getSignature
Description copied from interface:DBusContainerType
Gets the signature of this container type. The returned signature describes the container and its content.- Specified by:
getSignature
in interfaceDBusContainerType
- Returns:
- a
DBusSignature
-
equals
-
hashCode
public int hashCode() -
toString
-