Package org.synchronoss.cpo.core.enums
Enum Class Comparison
- All Implemented Interfaces:
Serializable,Comparable<Comparison>,Constable
The comparison operators for where clauses
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe equals operatorThe exists operatorThe greater than operatorThe greater than or equal to operatorThe in operatorThe is null operatorThe like operatorThe less than operatorThe less than or equal to operatorThe not equals operatorNo comparison operator defined -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ComparisonReturns the enum constant of this class with the specified name.static Comparison[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
NONE
No comparison operator defined -
EQ
The equals operator -
LT
The less than operator -
GT
The greater than operator -
NEQ
The not equals operator -
IN
The in operator -
LIKE
The like operator -
LTEQ
The less than or equal to operator -
GTEQ
The greater than or equal to operator -
EXISTS
The exists operator -
ISNULL
The is null operator
-
-
Field Details
-
operator
The string operator in this enum
-
-
Method Details
-
values
Returns 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
-
valueOf
Returns 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 nameNullPointerException- if the argument is null
-