public enum ComparisonOperator extends Enum<ComparisonOperator> implements Coded
EngineComparatorExtension
for the given objects or the DefaultComparisonOperator
.Enum Constant and Description |
---|
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 |
Modifier and Type | Field and Description |
---|---|
static Collection<String> |
OPERATOR_CODES
Operator codes, unmodifiable Collection
|
static Collection<String> |
OPERATOR_NAMES
Operator names, unmodifiable Collection
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final ComparisonOperator EQUALS
ComparisonOperator
EQUALSpublic static final ComparisonOperator NOT_EQUALS
ComparisonOperator
NOT_EQUALSpublic static final ComparisonOperator GREATER_THAN
ComparisonOperator
GREATER_THANpublic static final ComparisonOperator GREATER_THAN_EQUAL
ComparisonOperator
GREATER_THAN_EQUALpublic static final ComparisonOperator LESS_THAN
ComparisonOperator
LESS_THANpublic static final ComparisonOperator LESS_THAN_EQUAL
ComparisonOperator
LESS_THAN_EQUALpublic static final ComparisonOperator EXISTS
ComparisonOperator
EXISTSpublic static final ComparisonOperator DOES_NOT_EXIST
ComparisonOperator
DOES_NOT_EXISTSpublic static final Collection<String> OPERATOR_CODES
public static final Collection<String> OPERATOR_NAMES
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 nameNullPointerException
- if the argument is nullpublic String getCode()
Coded
public static ComparisonOperator fromCode(String code)
code
- for type of ComparisonOperator to createIllegalArgumentException
- if the given code does not existpublic boolean compare(Object lhs, Object rhs)
lhs
- left hand side objectrhs
- right hand side objectpublic void setComparisonOperatorService(ComparisonOperatorService comparisonOperatorService)
public String toString()
toString
in class Enum<ComparisonOperator>
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.