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 ofSimpleComparison
s that can be used inExpression
s.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EQUAL
Equals comparatorGREATER_THAN
Greater-than comparatorGREATER_THAN_OR_EQUAL
Greater-than-or-equal comparatorLESS_THAN
Less-than comparatorLESS_THAN_OR_EQUAL
Less-than-or-equal comparatorNOT_EQUAL
Not equals comparator
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SimpleComparisonOperator
ofSymbol(String operatorSymbol)
Get theSimpleComparisonOperator
for the provided symbolString
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.
-
-
-
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:ComparisonOperator
Returns the operator symbol that represents the comparison.- Specified by:
toString
in interfaceComparisonOperator
- Overrides:
toString
in classEnum<SimpleComparisonOperator>
- Returns:
- operator symbol
-
ofSymbol
public static SimpleComparisonOperator ofSymbol(String operatorSymbol)
Get theSimpleComparisonOperator
for the provided symbol- Parameters:
operatorSymbol
- symbol that represents the operator- Returns:
- operator
-
-