Enum SimpleComparisonOperator
- java.lang.Object
-
- java.lang.Enum<SimpleComparisonOperator>
-
- com.exasol.sql.expression.comparison.SimpleComparisonOperator
-
- All Implemented Interfaces:
ComparisonOperator,Serializable,Comparable<SimpleComparisonOperator>
public enum SimpleComparisonOperator extends Enum<SimpleComparisonOperator> implements ComparisonOperator
This enum represents the different types ofSimpleComparisons that can be used inExpressions.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EQUALEquals comparatorGREATER_THANGreater-than comparatorGREATER_THAN_OR_EQUALGreater-than-or-equal comparatorLESS_THANLess-than comparatorLESS_THAN_OR_EQUALLess-than-or-equal comparatorNOT_EQUALNot equals comparator
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SimpleComparisonOperatorofSymbol(String operatorSymbol)Get theSimpleComparisonOperatorfor the provided symbolStringtoString()Returns the operator symbol that represents the comparison.static SimpleComparisonOperatorvalueOf(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.
-
-
-
Enum Constant Detail
-
EQUAL
public static final SimpleComparisonOperator EQUAL
Equals comparator
-
NOT_EQUAL
public static final SimpleComparisonOperator NOT_EQUAL
Not equals comparator
-
GREATER_THAN
public static final SimpleComparisonOperator GREATER_THAN
Greater-than comparator
-
GREATER_THAN_OR_EQUAL
public static final SimpleComparisonOperator GREATER_THAN_OR_EQUAL
Greater-than-or-equal comparator
-
LESS_THAN
public static final SimpleComparisonOperator LESS_THAN
Less-than comparator
-
LESS_THAN_OR_EQUAL
public static final SimpleComparisonOperator LESS_THAN_OR_EQUAL
Less-than-or-equal comparator
-
-
Method Detail
-
values
public static SimpleComparisonOperator[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SimpleComparisonOperator c : SimpleComparisonOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SimpleComparisonOperator valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
public String toString()
Description copied from interface:ComparisonOperatorReturns the operator symbol that represents the comparison.- Specified by:
toStringin interfaceComparisonOperator- Overrides:
toStringin classEnum<SimpleComparisonOperator>- Returns:
- operator symbol
-
ofSymbol
public static SimpleComparisonOperator ofSymbol(String operatorSymbol)
Get theSimpleComparisonOperatorfor the provided symbol- Parameters:
operatorSymbol- symbol that represents the operator- Returns:
- operator
-
-