public class BasicFieldCompareConstraint extends BasicFieldConstraint implements FieldCompareConstraint, Serializable
modifiableEQUAL, GREATER, GREATER_EQUAL, LESS, LESS_EQUAL, LIKE, NOT_EQUAL, OPERATOR_DESCRIPTIONS, REGEXP| Modifier | Constructor and Description |
|---|---|
protected |
BasicFieldCompareConstraint(StepField field)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Compares this constraint to the specified object.
|
int |
getOperator()
Gets the operator used to compare values.
|
String |
getOperatorDescription()
Returns a description of the operator
|
int |
hashCode() |
BasicFieldCompareConstraint |
setOperator(int operator)
Sets operator.
|
String |
toString() |
getField, getFieldName, isCaseSensitive, matches, setCaseSensitivegetBasicSupportLevel, isInverse, setInverse, setUnmodifiableclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetField, isCaseSensitive, matchesgetBasicSupportLevel, isInverse, setUnmodifiableprotected BasicFieldCompareConstraint(StepField field)
field - The associated field.IllegalArgumentException - when an invalid argument is supplied.public BasicFieldCompareConstraint setOperator(int operator)
operator - the operator valueBasicFieldCompareConstraint instance.IllegalArgumentException - when an invalid argument is supplied.public int getOperator()
FieldCompareConstraintLIKE is allowed only when the associated field
is of string type.getOperator in interface FieldCompareConstraintpublic String getOperatorDescription()
public boolean equals(Object obj)
Constrainttrue if and only if the argument is a non-null
Constraint object representing the same constraint(s).equals in interface Constraintequals in class BasicFieldConstraintobj - The object to compare with.true if the objects are equal,
false otherwise.public int hashCode()
hashCode in interface ConstrainthashCode in class BasicFieldConstraintpublic String toString()
toString in class BasicFieldConstraintMMBase 1.9-SNAPSHOT - ${javadoctimestamp}