Enum Class TypeFlags

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

@Generated("org.javagi.JavaGI") public enum TypeFlags extends Enum<TypeFlags> implements Enumeration
Bit masks used to check or determine characteristics of a type.
  • Enum Constant Details

    • NONE

      public static final TypeFlags NONE
      No special flags. Since: 2.74
    • ABSTRACT

      public static final TypeFlags ABSTRACT
      Indicates an abstract type. No instances can be created for an abstract type
    • VALUE_ABSTRACT

      public static final TypeFlags VALUE_ABSTRACT
      Indicates an abstract value type, i.e. a type that introduces a value table, but can't be used for g_value_init()
    • FINAL

      public static final TypeFlags FINAL
      Indicates a final type. A final type is a non-derivable leaf node in a deep derivable type hierarchy tree. Since: 2.70
    • DEPRECATED

      public static final TypeFlags DEPRECATED
      The type is deprecated and may be removed in a future version. A warning will be emitted if it is instantiated while running with G_ENABLE_DIAGNOSTIC=1. Since 2.76
  • Method Details

    • values

      public static TypeFlags[] 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 TypeFlags 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
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static Set<TypeFlags> of(int flags)
      Create a new EnumSet<TypeFlags> for the provided bitfield
      Parameters:
      flags - the TypeFlags bitfield
      Returns:
      the EnumSet for the provided bitfield
    • of

      public static Set<TypeFlags> of(MemorySegment address)
      Create a new EnumSet<TypeFlags> for the bitfield in the provided memory address.
      Parameters:
      address - the memory address holding a bitfield value
      Returns:
      the EnumSet for the bitfield in the provided memory address