Package org.gnome.glib
Enum Class VariantClass
- All Implemented Interfaces:
Serializable,Comparable<VariantClass>,Constable,Enumeration
@Generated("io.github.jwharm.JavaGI")
public enum VariantClass
extends Enum<VariantClass>
implements Enumeration
The range of possible top-level types of
GVariant instances.- Since:
- 2.24
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTheGVariantis an array.TheGVariantis a boolean.TheGVariantis a byte.TheGVariantis a dictionary entry.TheGVariantis a double precision floating point value.TheGVariantis a file handle index.TheGVariantis a signed 16 bit integer.TheGVariantis a signed 32 bit integer.TheGVariantis a signed 64 bit integer.TheGVariantis a maybe-typed value.TheGVariantis a D-Bus object path string.TheGVariantis a D-Bus signature string.TheGVariantis a normal string.TheGVariantis a tuple.TheGVariantis an unsigned 16 bit integer.TheGVariantis an unsigned 32 bit integer.TheGVariantis an unsigned 64 bit integer.TheGVariantis a variant. -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()Get the numeric value of this enumstatic VariantClassof(int value) Create a new VariantClass for the provided valuestatic VariantClassof(MemorySegment address) Create a new VariantClass for the value in the provided memory address.static VariantClassReturns 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
TheGVariantis a boolean. -
BYTE
TheGVariantis a byte. -
INT16
TheGVariantis a signed 16 bit integer. -
UINT16
TheGVariantis an unsigned 16 bit integer. -
INT32
TheGVariantis a signed 32 bit integer. -
UINT32
TheGVariantis an unsigned 32 bit integer. -
INT64
TheGVariantis a signed 64 bit integer. -
UINT64
TheGVariantis an unsigned 64 bit integer. -
HANDLE
TheGVariantis a file handle index. -
DOUBLE
TheGVariantis a double precision floating point value. -
STRING
TheGVariantis a normal string. -
OBJECT_PATH
TheGVariantis a D-Bus object path string. -
SIGNATURE
TheGVariantis a D-Bus signature string. -
VARIANT
TheGVariantis a variant. -
MAYBE
TheGVariantis a maybe-typed value. -
ARRAY
TheGVariantis an array. -
TUPLE
TheGVariantis a tuple. -
DICT_ENTRY
TheGVariantis 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:
getValuein interfaceEnumeration- Returns:
- the enum value
-
of
Create a new VariantClass for the value in the provided memory address.- Parameters:
address- the memory address holding a enum value- Returns:
- the enum for the value in the provided memory address
-