public static enum CriteriaOperator.Operator extends Enum<CriteriaOperator.Operator>
Enum Constant and Description |
---|
EQ
Constant indicating the two operands are equal.
|
GE
Constant indicating the first operand is greater than or equal to the second.
|
GT
Constant indicating the first operand is greater than the second.
|
LE
Constant indicating the first operand is less than or equal to the second.
|
LT
Constant indicating the first operand is less than the second.
|
NE
Constant indicating the two operands are not equal.
|
Modifier and Type | Method and Description |
---|---|
static CriteriaOperator.Operator |
findOperator(int index) |
static CriteriaOperator.Operator |
findOperator(String name) |
int |
getIndex() |
static CriteriaOperator.Operator |
getOperator(MetadataVersion version,
String symbol) |
Collection<String> |
getSymbols()
Operators can have more than one symbol
representing them
|
boolean |
isGreaterThan(CriteriaOperator.Operator other) |
boolean |
isLessThan(CriteriaOperator.Operator other) |
String |
toString() |
static CriteriaOperator.Operator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CriteriaOperator.Operator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CriteriaOperator.Operator EQ
public static final CriteriaOperator.Operator NE
public static final CriteriaOperator.Operator LT
public static final CriteriaOperator.Operator GT
public static final CriteriaOperator.Operator LE
public static final CriteriaOperator.Operator GE
public static CriteriaOperator.Operator[] values()
for (CriteriaOperator.Operator c : CriteriaOperator.Operator.values()) System.out.println(c);
public static CriteriaOperator.Operator 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 String toString()
toString
in class Enum<CriteriaOperator.Operator>
public int getIndex()
public Collection<String> getSymbols()
public boolean isLessThan(CriteriaOperator.Operator other)
other
- value to test againstpublic boolean isGreaterThan(CriteriaOperator.Operator other)
other
- value to test againstpublic static CriteriaOperator.Operator findOperator(int index)
index
- valueCriteriaOperator.Operator
with the given quantifier indexpublic static CriteriaOperator.Operator getOperator(MetadataVersion version, String symbol)
version
- of the parsersymbol
- valueCriteriaOperator.Operator
for the given string representationpublic static CriteriaOperator.Operator findOperator(String name)
name
- valueCopyright © 2013–2019. All rights reserved.