public class DateVetoPolicyMinimumMaximumDate extends Object implements DateVetoPolicy
Constructor and Description |
---|
DateVetoPolicyMinimumMaximumDate(LocalDate firstAllowedDate,
LocalDate lastAllowedDate)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DateInterval |
getDateRangeLimits()
getDateRangeLimits, This returns the currently used date limits, as a DateInterval object.
|
boolean |
isDateAllowed(LocalDate date)
isDateAllowed, This implements the DateVetoPolicy interface.
|
void |
setDateRangeLimits(LocalDate firstAllowedDate,
LocalDate lastAllowedDate)
setDateRangeLimits, This sets the currently used date limits.
|
public DateVetoPolicyMinimumMaximumDate(LocalDate firstAllowedDate, LocalDate lastAllowedDate)
public DateInterval getDateRangeLimits()
public boolean isDateAllowed(LocalDate date)
isDateAllowed
in interface DateVetoPolicy
Copyright © 2017. All rights reserved.