public interface PolicyFilter
These are applied with the builder.
| Modifier and Type | Method and Description |
|---|---|
boolean |
applies(LocalDate today) |
static PolicyFilter |
daysOfWeek(DayOfWeek... days)
Create a filter for particular days of the week.
|
static PolicyFilter |
not(PolicyFilter other)
Wraps another filter, negating it.
|
boolean applies(LocalDate today)
static PolicyFilter daysOfWeek(DayOfWeek... days)
days - - varargs of days of the week from java.time.static PolicyFilter not(PolicyFilter other)
For instance, you could create a filter with daysOfWeek(SATURDAY, SUNDAY) and wrap it in not(), to create a filter that only allows weekdays.
other - - the filter to negateCopyright © 2017. All rights reserved.