public class Variant<T> extends Object
| Constructor and Description |
|---|
Variant(T _value)
Create a Variant from a basic type object.
|
Variant(T _value,
String _sig)
Create a Variant.
|
Variant(T _value,
Type _type)
Create a Variant.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other)
Compare this Variant with another by comparing contents.
|
String |
getSig()
Return the dbus signature of the wrapped value.
|
Type |
getType()
Return the type of the wrapped value.
|
T |
getValue()
Return the wrapped value.
|
String |
toString()
Format the Variant as a string.
|
public Variant(T _value) throws IllegalArgumentException
_value - The wrapped value.IllegalArgumentException - If you try and wrap Null or an object of a non-basic type.public Variant(T _value, Type _type) throws IllegalArgumentException
_value - The wrapped value._type - The explicit type of the value.IllegalArgumentException - If you try and wrap Null or an object which cannot be sent over DBus.public Variant(T _value, String _sig) throws IllegalArgumentException
_value - The wrapped value._sig - The explicit type of the value, as a dbus type string.IllegalArgumentException - If you try and wrap Null or an object which cannot be sent over DBus.public T getValue()
public Type getType()
public String getSig()
public String toString()
Copyright © 2020. All rights reserved.