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 TypeMethodDescriptionbooleanGets the wrapped value of this container type.Gets the signature of this container type.getType()Gets the type of this implementation.inthashCode()toString()static DBusVariant
-
Method Details
-
valueOf
-
getType
Description copied from interface:DBusTypeGets the type of this implementation. -
getDelegate
Description copied from interface:DBusContainerTypeGets 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:
getDelegatein interfaceDBusContainerType- Returns:
- an
Object
-
getSignature
Description copied from interface:DBusContainerTypeGets the signature of this container type. The returned signature describes the container and its content.- Specified by:
getSignaturein interfaceDBusContainerType- Returns:
- a
DBusSignature
-
equals
-
hashCode
public int hashCode() -
toString
-