Package org.freedesktop.dbus
Class Variant<T>
java.lang.Object
org.freedesktop.dbus.Variant<T>
A Wrapper class for Variant values.
A method on DBus can send or receive a Variant.
This will wrap another value whose type is determined at runtime.
The Variant may be parameterized to restrict the types it may accept.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Variant
Create a Variant from a basic type object.- Parameters:
o
- The wrapped value.
-
Variant
Create a Variant.- Parameters:
o
- The wrapped value.type
- The explicit type of the value.
-
Variant
Create a Variant.- Parameters:
o
- The wrapped value.sig
- The explicit type of the value, as a dbus type string.
-
-
Method Details
-
getValue
Return the wrapped value. -
getType
Return the type of the wrapped value. -
getSig
Return the dbus signature of the wrapped value. -
toString
Format the Variant as a string. -
equals
Compare this Variant with another by comparing contents
-