java.lang.Object
org.freedesktop.dbus.types.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.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanCompare this Variant with another by comparing contents.getSig()Return the dbus signature of the wrapped value.getType()Return the type of the wrapped value.getValue()Return the wrapped value.inthashCode()toString()Format the Variant as a string.
-
Konstruktordetails
-
Variant
Create a Variant from a basic type object.- Parameter:
_value- The wrapped value.- Löst aus:
IllegalArgumentException- If you try and wrap Null or an object of a non-basic type.
-
Variant
Create a Variant.- Parameter:
_value- The wrapped value._type- The explicit type of the value.- Löst aus:
IllegalArgumentException- If you try and wrap Null or an object which cannot be sent over DBus.
-
Variant
Create a Variant.- Parameter:
_value- The wrapped value._sig- The explicit type of the value, as a dbus type string.- Löst aus:
IllegalArgumentException- If you try and wrap Null or an object which cannot be sent over DBus.
-
-
Methodendetails
-
getValue
Return the wrapped value.- Gibt zurück:
- value
-
getType
Return the type of the wrapped value.- Gibt zurück:
- type
-
getSig
Return the dbus signature of the wrapped value.- Gibt zurück:
- signature
-
toString
Format the Variant as a string. -
hashCode
public int hashCode() -
equals
Compare this Variant with another by comparing contents.
-