public class BasicFieldValueDateConstraint extends BasicFieldValueConstraint implements FieldValueDateConstraint, Serializable
modifiableCENTURY, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_YEAR, HOUR, MILLISECOND, MINUTE, MONTH, PART_DESCRIPTIONS, QUARTER, SECOND, WEEK, YEAREQUAL, GREATER, GREATER_EQUAL, LESS, LESS_EQUAL, LIKE, NOT_EQUAL, OPERATOR_DESCRIPTIONS, REGEXP| Constructor and Description |
|---|
BasicFieldValueDateConstraint(StepField field,
Object value,
int part)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Compares this constraint to the specified object.
|
int |
getPart()
Returns the part of the date-field wich is to be compared.
|
String |
getPartDescription()
Returns a description of the part
|
int |
hashCode() |
void |
setPart(int p) |
String |
toString()
Returns a string representation of this FieldValueConstraint.
|
getValue, matches, setValuegetOperator, getOperatorDescription, setOperatorgetField, getFieldName, isCaseSensitive, setCaseSensitivegetBasicSupportLevel, isInverse, setInverse, setUnmodifiableclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetValuegetOperatorgetField, isCaseSensitive, matchesgetBasicSupportLevel, isInverse, setUnmodifiablepublic BasicFieldValueDateConstraint(StepField field, Object value, int part)
String or Number.field - The associated field.value - The non-null property value.part - Which part of the date to compareIllegalArgumentException - when an invalid argument is supplied.public int getPart()
FieldValueDateConstraintgetPart in interface FieldValueDateConstraintpublic String getPartDescription()
public void setPart(int p)
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 BasicFieldValueConstraintobj - The object to compare with.true if the objects are equal,
false otherwise.public int hashCode()
hashCode in interface ConstrainthashCode in class BasicFieldValueConstraintpublic String toString()
FieldValueConstraintisInverse()
FieldConstraint#getField().getAlias(), or
FieldConstraint#getField().getFieldName()
when the former is null.
isCaseSensitive()
getValue()
toString in interface FieldValueConstrainttoString in class BasicFieldValueConstraintMMBase 1.9-SNAPSHOT - ${javadoctimestamp}