Package org.gnome.gobject
Enum Class TypeFlags
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<TypeFlags>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum TypeFlags
extends Enum<TypeFlags>
implements Enumeration
Bit masks used to check or determine characteristics of a type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicates an abstract type.The type is deprecated and may be removed in a future version.Indicates a final type.No special flags.Indicates an abstract value type, i.e. -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Get the numeric value of this enumstatic TypeFlags
of
(int value) Create a new TypeFlags for the provided valuestatic TypeFlags
Returns the enum constant of this class with the specified name.static TypeFlags[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No special flags. Since: 2.74 -
ABSTRACT
Indicates an abstract type. No instances can be created for an abstract type -
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
Indicates a final type. A final type is a non-derivable leaf node in a deep derivable type hierarchy tree. Since: 2.70 -
DEPRECATED
The type is deprecated and may be removed in a future version. A warning will be emitted if it is instantiated while running withG_ENABLE_DIAGNOSTIC=1
. Since 2.76
-
-
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 TypeFlags for the provided value- Parameters:
value
- the bitfield value- Returns:
- the bitfield for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-