public class AfterDate extends BaseConstraint<Date>
Date values that follow a given one.| Constructor and Description |
|---|
AfterDate() |
AfterDate(Date d)
Creates an instance with 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 AfterDate()
public AfterDate(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.