public class BeforeDate extends BaseConstraint<Date>
Date values that precede a given one.| Constructor and Description |
|---|
BeforeDate() |
BeforeDate(Date d)
Creates an instance from a given date.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Date d)
Returns
true if a value satisfies the constraint. |
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString() |
public BeforeDate()
public BeforeDate(Date d)
d - the datepublic boolean accepts(Date d)
true if a value satisfies the constraint.d - the value.true if the value satisfies the constraint, false if it does not.public String toString()
toString in class BaseConstraint<Date>Copyright © 2018. All Rights Reserved.