Enum CompareOperator
- All Implemented Interfaces:
Serializable
,Comparable<CompareOperator>
,java.lang.constant.Constable
Enumeration of comparison operators.
- Version:
- $Revision$ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
- Author:
- Ahmad Hassan, Ralf Joachim
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptioninverse()
Returns the inverse comparison operator.toString()
Returns a string representation of the comparison operator in SQL syntax.static CompareOperator
Returns the enum constant of this type with the specified name.static CompareOperator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EQ
Equal comparison operator. -
NE
Not equal comparison operator. -
LT
Less than comparison operator. -
GE
Greater than or equal comparison operator. -
GT
Greater than comparison operator. -
LE
Less than or equal comparison operator.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
inverse
Returns the inverse comparison operator.- Returns:
- Inverse comparison operator.
-
toString
Returns a string representation of the comparison operator in SQL syntax.- Overrides:
toString
in classEnum<CompareOperator>
- Returns:
- String representation of the comparison operator in SQL syntax.
-