Package org.sellcom.geotemporal.time
Interface HolidayPredicate
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface HolidayPredicate
Predicate determining holidays.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleantest(Temporal temporal, GeoRegion region, EnumSet<HolidayType> types)Checks whether the given temporal is a holiday in the given region.
-
-
-
Method Detail
-
test
boolean test(Temporal temporal, GeoRegion region, EnumSet<HolidayType> types)
Checks whether the given temporal is a holiday in the given region.Only considers holidays of the given types.
- Throws:
IllegalArgumentException- iftemporalisnullIllegalArgumentException- ifregionisnullIllegalArgumentException- iftypesisnullGeoRegionNotSupportedException- if the given region is not supported- Since:
- 1.0
-
-