Package org.basex.query.expr
Enum Class CmpG.OpG
- All Implemented Interfaces:
Serializable,Comparable<CmpG.OpG>,java.lang.constant.Constable
- Enclosing class:
- CmpG
Comparators.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionabstract CmpG.OpGinvert()Inverts the comparator.abstract CmpG.OpGswap()Swaps the comparator.toString()static CmpG.OpGReturns the enum constant of this class with the specified name.static CmpG.OpG[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LE
General comparison: less or equal. -
LT
General comparison: less. -
GE
General comparison: greater of equal. -
GT
General comparison: greater. -
EQ
General comparison: equal. -
NE
General comparison: not equal.
-
-
Field Details
-
VALUES
Cached enums (faster). -
name
String representation. -
opV
Value comparison operator.
-
-
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
-
swap
Swaps the comparator.- Returns:
- swapped comparator
-
invert
Inverts the comparator.- Returns:
- inverted comparator
-
toString
-