public enum SimpleComparisonOperator extends Enum<SimpleComparisonOperator> implements ComparisonOperator
SimpleComparisons 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 SimpleComparisonOperator |
ofSymbol(String operatorSymbol)
Get the
SimpleComparisonOperator for the provided symbol |
String |
toString()
Returns the operator symbol that represents the comparison.
|
static SimpleComparisonOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SimpleComparisonOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SimpleComparisonOperator EQUAL
public static final SimpleComparisonOperator NOT_EQUAL
public static final SimpleComparisonOperator GREATER_THAN
public static final SimpleComparisonOperator GREATER_THAN_OR_EQUAL
public static final SimpleComparisonOperator LESS_THAN
public static final SimpleComparisonOperator LESS_THAN_OR_EQUAL
public static SimpleComparisonOperator[] values()
for (SimpleComparisonOperator c : SimpleComparisonOperator.values()) System.out.println(c);
public static SimpleComparisonOperator 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()
ComparisonOperatortoString in interface ComparisonOperatortoString in class Enum<SimpleComparisonOperator>public static SimpleComparisonOperator ofSymbol(String operatorSymbol)
SimpleComparisonOperator for the provided symboloperatorSymbol - symbol that represents the operatorCopyright © 2018–2021. All rights reserved.