Enum Class VariantClass

java.lang.Object
java.lang.Enum<VariantClass>
org.gnome.glib.VariantClass
All Implemented Interfaces:
Serializable, Comparable<VariantClass>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum VariantClass extends Enum<VariantClass> implements Enumeration
The range of possible top-level types of GVariant instances.
Since:
2.24
  • Enum Constant Details

    • BOOLEAN

      public static final VariantClass BOOLEAN
      The GVariant is a boolean.
    • BYTE

      public static final VariantClass BYTE
      The GVariant is a byte.
    • INT16

      public static final VariantClass INT16
      The GVariant is a signed 16 bit integer.
    • UINT16

      public static final VariantClass UINT16
      The GVariant is an unsigned 16 bit integer.
    • INT32

      public static final VariantClass INT32
      The GVariant is a signed 32 bit integer.
    • UINT32

      public static final VariantClass UINT32
      The GVariant is an unsigned 32 bit integer.
    • INT64

      public static final VariantClass INT64
      The GVariant is a signed 64 bit integer.
    • UINT64

      public static final VariantClass UINT64
      The GVariant is an unsigned 64 bit integer.
    • HANDLE

      public static final VariantClass HANDLE
      The GVariant is a file handle index.
    • DOUBLE

      public static final VariantClass DOUBLE
      The GVariant is a double precision floating point value.
    • STRING

      public static final VariantClass STRING
      The GVariant is a normal string.
    • OBJECT_PATH

      public static final VariantClass OBJECT_PATH
      The GVariant is a D-Bus object path string.
    • SIGNATURE

      public static final VariantClass SIGNATURE
      The GVariant is a D-Bus signature string.
    • VARIANT

      public static final VariantClass VARIANT
      The GVariant is a variant.
    • MAYBE

      public static final VariantClass MAYBE
      The GVariant is a maybe-typed value.
    • ARRAY

      public static final VariantClass ARRAY
      The GVariant is an array.
    • TUPLE

      public static final VariantClass TUPLE
      The GVariant is a tuple.
    • DICT_ENTRY

      public static final VariantClass DICT_ENTRY
      The GVariant is a dictionary entry.
  • Method Details

    • values

      public static VariantClass[] 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

      public static VariantClass valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • of

      public static VariantClass of(int value)
      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 interface Enumeration
      Returns:
      the enum value
    • of

      public static VariantClass of(MemorySegment address)
      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