public static enum CmpG.OpG extends Enum<CmpG.OpG>
Enum Constant and Description |
---|
EQ
General comparison: equal.
|
GE
General comparison: greater of equal.
|
GT
General comparison: greater.
|
LE
General comparison: less or equal.
|
LT
General comparison: less.
|
NE
General comparison: not equal.
|
Modifier and Type | Field and Description |
---|---|
String |
name
String representation.
|
CmpV.OpV |
op
Comparator.
|
static CmpG.OpG[] |
VALUES
Cached enums (faster).
|
Modifier and Type | Method and Description |
---|---|
abstract CmpG.OpG |
invert()
Inverts the comparator.
|
abstract CmpG.OpG |
swap()
Swaps the comparator.
|
String |
toString() |
static CmpG.OpG |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CmpG.OpG[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CmpG.OpG LE
public static final CmpG.OpG LT
public static final CmpG.OpG GE
public static final CmpG.OpG GT
public static final CmpG.OpG EQ
public static final CmpG.OpG NE
public static final CmpG.OpG[] VALUES
public final String name
public final CmpV.OpV op
public static CmpG.OpG[] values()
for (CmpG.OpG c : CmpG.OpG.values()) System.out.println(c);
public static CmpG.OpG valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract CmpG.OpG swap()
public abstract CmpG.OpG invert()
Copyright © 2005–2015 BaseX Team. All rights reserved.