Package org.gnome.gtk
Enum Class Ordering
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<Ordering>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum Ordering
extends Enum<Ordering>
implements Enumeration
Describes the way two values can be compared.
These values can be used with a GLib.CompareFunc
. However,
a GCompareFunc
is allowed to return any integer values.
For converting such a value to a GtkOrdering
value, use
fromCmpfunc(int)
.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Ordering
fromCmpfunc
(int cmpfuncResult) Converts the result of aGCompareFunc
like strcmp() to aGtkOrdering
value.static Type
getType()
Get the GType of the Ordering classint
getValue()
Get the numeric value of this enumstatic Ordering
of
(int value) Create a new Ordering for the provided valuestatic Ordering
Returns the enum constant of this class with the specified name.static Ordering[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SMALLER
the first value is smaller than the second -
EQUAL
the two values are equal -
LARGER
the first value is larger than the second
-
-
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 Ordering 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
-
getType
-
fromCmpfunc
Converts the result of aGCompareFunc
like strcmp() to aGtkOrdering
value.- Parameters:
cmpfuncResult
- Result of a comparison function- Returns:
- the corresponding
GtkOrdering
-