|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<CmpV.OpV>
org.basex.query.expr.CmpV.OpV
public static enum CmpV.OpV
Comparators.
Enum Constant Summary | |
---|---|
EQ
Item comparison:equal. |
|
GE
Item comparison:greater of equal. |
|
GT
Item comparison:greater. |
|
LE
Item comparison:less or equal. |
|
LT
Item comparison:less. |
|
NE
Item comparison:not equal. |
Field Summary | |
---|---|
java.lang.String |
name
String representation. |
static CmpV.OpV[] |
VALUES
Cached enums (faster). |
Method Summary | |
---|---|
abstract boolean |
eval(Item a,
Item b,
Collation coll,
InputInfo ii)
Evaluates the expression. |
abstract CmpV.OpV |
invert()
Inverts the comparator. |
abstract CmpV.OpV |
swap()
Swaps the comparator. |
java.lang.String |
toString()
|
static CmpV.OpV |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static CmpV.OpV[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final CmpV.OpV LE
public static final CmpV.OpV LT
public static final CmpV.OpV GE
public static final CmpV.OpV GT
public static final CmpV.OpV EQ
public static final CmpV.OpV NE
Field Detail |
---|
public static final CmpV.OpV[] VALUES
public final java.lang.String name
Method Detail |
---|
public static CmpV.OpV[] values()
for (CmpV.OpV c : CmpV.OpV.values()) System.out.println(c);
public static CmpV.OpV valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic abstract boolean eval(Item a, Item b, Collation coll, InputInfo ii) throws QueryException
a
- first itemb
- second itemcoll
- query contextii
- input info
QueryException
- query exceptionpublic abstract CmpV.OpV swap()
public abstract CmpV.OpV invert()
public java.lang.String toString()
toString
in class java.lang.Enum<CmpV.OpV>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |