public enum ComparisonOperator extends Enum<ComparisonOperator>
Comparisons that can be
used in Expressions.| Enum Constant and Description |
|---|
EQUAL |
GREATER_THAN |
GREATER_THAN_OR_EQUAL |
LESS_THAN |
LESS_THAN_OR_EQUAL |
NOT_EQUAL |
| Modifier and Type | Method and Description |
|---|---|
static ComparisonOperator |
ofSymbol(String operatorSymbol)
Get the
ComparisonOperator for the provided symbol |
String |
toString()
Returns the operator symbol that represents the comparison.
|
static ComparisonOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ComparisonOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ComparisonOperator EQUAL
public static final ComparisonOperator NOT_EQUAL
public static final ComparisonOperator GREATER_THAN
public static final ComparisonOperator GREATER_THAN_OR_EQUAL
public static final ComparisonOperator LESS_THAN
public static final ComparisonOperator LESS_THAN_OR_EQUAL
public static ComparisonOperator[] values()
for (ComparisonOperator c : ComparisonOperator.values()) System.out.println(c);
public static ComparisonOperator 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<ComparisonOperator>public static ComparisonOperator ofSymbol(String operatorSymbol)
ComparisonOperator for the provided symboloperatorSymbol - symbol that represents the operatorCopyright © 2018–2020. All rights reserved.