- All Implemented Interfaces:
- Serializable,- Comparable<Comparator>,- Constable
A comparator to be used in conditions to form comparison predicates.
 
 Comparison operators listed here can be used to compare Field or
 Row values with other Field or Row values, or with
 Select or QuantifiedSelect values.
 
The following flags indicate whether the comparator can be used as:
- a quantified comparison operator: supportsQuantifier(). Example:X = ANY (A, B, C)
- a subselect comparison operator: supportsSubselect(). Example:X = (SELECT A)
- Author:
- Lukas Eder
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Method SummaryModifier and TypeMethodDescriptioninverse()Get the inverse comparator such thatA [op] BandNOT(A [inverse op] B).mirror()Get the mirrored comparator such thatA [op] BandB [mirrored op] A, ornullif the comparator cannot be mirrored.booleanDeprecated, for removal: This API element is subject to removal in a future version.- 3.14.0 - [#9911] - This method is no longer supported.booleanDeprecated, for removal: This API element is subject to removal in a future version.- 3.14.0 - [#9911] - This method is no longer supported.booleanDeprecated, for removal: This API element is subject to removal in a future version.- 3.14.0 - [#9911] - This method is no longer supported.A keyword rendition of this comparator.toSQL()A SQL rendition of this comparator.static ComparatorReturns the enum constant of this class with the specified name.static Comparator[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
IN
- 
NOT_IN
- 
EQUALS
- 
NOT_EQUALS
- 
LESS
- 
LESS_OR_EQUAL
- 
GREATER
- 
GREATER_OR_EQUAL
- 
IS_DISTINCT_FROM
- 
IS_NOT_DISTINCT_FROM
- 
LIKE
- 
NOT_LIKE
- 
SIMILAR_TO
- 
NOT_SIMILAR_TO
- 
LIKE_IGNORE_CASE
- 
NOT_LIKE_IGNORE_CASE
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
toSQLA SQL rendition of this comparator.
- 
toKeywordA keyword rendition of this comparator.
- 
inverseGet the inverse comparator such thatA [op] BandNOT(A [inverse op] B).
- 
mirrorGet the mirrored comparator such thatA [op] BandB [mirrored op] A, ornullif the comparator cannot be mirrored.
- 
supportsNullsDeprecated, for removal: This API element is subject to removal in a future version.- 3.14.0 - [#9911] - This method is no longer supported.Whether this comparator supports quantifiers on the right-hand side.
- 
supportsQuantifierDeprecated, for removal: This API element is subject to removal in a future version.- 3.14.0 - [#9911] - This method is no longer supported.Whether this comparator supports quantifiers on the right-hand side.
- 
supportsSubselectDeprecated, for removal: This API element is subject to removal in a future version.- 3.14.0 - [#9911] - This method is no longer supported.Whether this comparator supports subselects on the right-hand side.
 
-