|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ComparisonOperator> org.kuali.rice.krms.framework.engine.expression.ComparisonOperator
public enum ComparisonOperator
Operators enumeration for comparing objects. EQUALS NOT_EQUALS GREATER_THAN GREATER_THAN_EQUAL LESS_THAN LESS_THAN_EQUAL.
Uses registered EngineComparatorExtension
for the given objects or the DefaultComparisonOperator
.
Enum Constant Summary | |
---|---|
DOES_NOT_EXIST
use this flag with the static factory to get a ComparisonOperator DOES_NOT_EXISTS |
|
EQUALS
use this flag with the static factory to get a ComparisonOperator EQUALS |
|
EXISTS
use this flag with the static factory to get a ComparisonOperator EXISTS |
|
GREATER_THAN
use this flag with the static factory to get a ComparisonOperator GREATER_THAN |
|
GREATER_THAN_EQUAL
use this flag with the static factory to get a ComparisonOperator GREATER_THAN_EQUAL |
|
LESS_THAN
use this flag with the static factory to get a ComparisonOperator LESS_THAN |
|
LESS_THAN_EQUAL
use this flag with the static factory to get a ComparisonOperator LESS_THAN_EQUAL |
|
NOT_EQUALS
use this flag with the static factory to get a ComparisonOperator NOT_EQUALS |
Field Summary | |
---|---|
static Collection<String> |
OPERATOR_CODES
Operator codes, unmodifiable Collection |
static Collection<String> |
OPERATOR_NAMES
Operator names, unmodifiable Collection |
Method Summary | |
---|---|
boolean |
compare(Object lhs,
Object rhs)
Compare the given objects |
static ComparisonOperator |
fromCode(String code)
Create a ComparisonOperator from the given code |
String |
getCode()
The code value for this object. |
void |
setComparisonOperatorService(ComparisonOperatorService comparisonOperatorService)
|
String |
toString()
|
static ComparisonOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ComparisonOperator[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ComparisonOperator EQUALS
ComparisonOperator
EQUALS
public static final ComparisonOperator NOT_EQUALS
ComparisonOperator
NOT_EQUALS
public static final ComparisonOperator GREATER_THAN
ComparisonOperator
GREATER_THAN
public static final ComparisonOperator GREATER_THAN_EQUAL
ComparisonOperator
GREATER_THAN_EQUAL
public static final ComparisonOperator LESS_THAN
ComparisonOperator
LESS_THAN
public static final ComparisonOperator LESS_THAN_EQUAL
ComparisonOperator
LESS_THAN_EQUAL
public static final ComparisonOperator EXISTS
ComparisonOperator
EXISTS
public static final ComparisonOperator DOES_NOT_EXIST
ComparisonOperator
DOES_NOT_EXISTS
Field Detail |
---|
public static final Collection<String> OPERATOR_CODES
public static final Collection<String> OPERATOR_NAMES
Method Detail |
---|
public static ComparisonOperator[] values()
for (ComparisonOperator c : ComparisonOperator.values()) System.out.println(c);
public static ComparisonOperator valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String getCode()
Coded
getCode
in interface Coded
public static ComparisonOperator fromCode(String code)
code
- for type of ComparisonOperator to create
IllegalArgumentException
- if the given code does not existpublic boolean compare(Object lhs, Object rhs)
lhs
- left hand side objectrhs
- right hand side object
public void setComparisonOperatorService(ComparisonOperatorService comparisonOperatorService)
public String toString()
toString
in class Enum<ComparisonOperator>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |