public class Variant<T> extends Object
| Constructor and Description |
|---|
Variant(T o)
Create a Variant from a basic type object.
|
Variant(T o,
String sig)
Create a Variant.
|
Variant(T o,
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 o) throws IllegalArgumentException
o - The wrapped value.IllegalArugmentException - If you try and wrap Null or an object of a non-basic type.IllegalArgumentExceptionpublic Variant(T o, Type type) throws IllegalArgumentException
o - The wrapped value.type - The explicit type of the value.IllegalArugmentException - If you try and wrap Null or an object which cannot be sent over DBus.IllegalArgumentExceptionpublic Variant(T o, String sig) throws IllegalArgumentException
o - The wrapped value.sig - The explicit type of the value, as a dbus type string.IllegalArugmentException - If you try and wrap Null or an object which cannot be sent over DBus.IllegalArgumentExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.