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.
|
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.