Package org.gnome.glib
Enum Class VariantClass
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<VariantClass>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum VariantClass
extends Enum<VariantClass>
implements Enumeration
The range of possible top-level types of
GVariant
instances.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionTheGVariant
is an array.TheGVariant
is a boolean.TheGVariant
is a byte.TheGVariant
is a dictionary entry.TheGVariant
is a double precision floating point value.TheGVariant
is a file handle index.TheGVariant
is a signed 16 bit integer.TheGVariant
is a signed 32 bit integer.TheGVariant
is a signed 64 bit integer.TheGVariant
is a maybe-typed value.TheGVariant
is a D-Bus object path string.TheGVariant
is a D-Bus signature string.TheGVariant
is a normal string.TheGVariant
is a tuple.TheGVariant
is an unsigned 16 bit integer.TheGVariant
is an unsigned 32 bit integer.TheGVariant
is an unsigned 64 bit integer.TheGVariant
is a variant. -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Get the numeric value of this enumstatic VariantClass
of
(int value) Create a new VariantClass for the provided valuestatic VariantClass
Returns the enum constant of this class with the specified name.static VariantClass[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BOOLEAN
TheGVariant
is a boolean. -
BYTE
TheGVariant
is a byte. -
INT16
TheGVariant
is a signed 16 bit integer. -
UINT16
TheGVariant
is an unsigned 16 bit integer. -
INT32
TheGVariant
is a signed 32 bit integer. -
UINT32
TheGVariant
is an unsigned 32 bit integer. -
INT64
TheGVariant
is a signed 64 bit integer. -
UINT64
TheGVariant
is an unsigned 64 bit integer. -
HANDLE
TheGVariant
is a file handle index. -
DOUBLE
TheGVariant
is a double precision floating point value. -
STRING
TheGVariant
is a normal string. -
OBJECT_PATH
TheGVariant
is a D-Bus object path string. -
SIGNATURE
TheGVariant
is a D-Bus signature string. -
VARIANT
TheGVariant
is a variant. -
MAYBE
TheGVariant
is a maybe-typed value. -
ARRAY
TheGVariant
is an array. -
TUPLE
TheGVariant
is a tuple. -
DICT_ENTRY
TheGVariant
is a dictionary entry.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
of
Create a new VariantClass for the provided value- Parameters:
value
- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-