public abstract class TemporalApplicability extends GeoTemporalApplicability implements TemporalPredicate
Temporal.Temporal| Constructor and Description |
|---|
TemporalApplicability() |
| Modifier and Type | Method and Description |
|---|---|
static TemporalApplicability |
always()
Creates an applicability that is always satisfied.
|
static TemporalApplicability |
dateRange(LocalDate startDate,
LocalDate endDate)
Creates an applicability satisfied in the given range of dates.
|
static TemporalApplicability |
dayOfWeekAfter(int ordinal,
DayOfWeek dayOfWeek,
MonthDay monthDay)
Creates an applicability satisfied on the ordinal-th day-of-week after the given month-day.
|
static TemporalApplicability |
dayOfWeekBefore(int ordinal,
DayOfWeek dayOfWeek,
MonthDay monthDay)
Creates an applicability satisfied on the ordinal-th day-of-week before the given month-day.
|
static TemporalApplicability |
dayOfWeekRange(DayOfWeek startDayOfWeek,
DayOfWeek endDayOfWeek)
Creates an applicability satisfied in the given days-of-week.
|
static TemporalApplicability |
evenIsoWeek()
Creates an applicability satisfied in weeks with an even ISO week number.
|
static TemporalApplicability |
isoWeekRange(int startWeekNumber,
int endWeekNumber)
Creates an applicability satisfied in weeks with the week number in the given range.
|
static TemporalApplicability |
monthDayRange(MonthDay startMonthDay,
MonthDay endMonthDay)
Creates an applicability satisfied in the given range of month-days.
|
static TemporalApplicability |
monthRange(Month startMonth,
Month endMonth)
Creates an applicability satisfied in the given range of months.
|
TemporalApplicability |
negate() |
static TemporalApplicability |
never()
Creates an applicability that is never satisfied.
|
static TemporalApplicability |
oddIsoWeek()
Creates an applicability satisfied in weeks with an odd ISO week number.
|
static TemporalApplicability |
singleDate(LocalDate date)
Creates an applicability satisfied on the given date.
|
static TemporalApplicability |
singleDayOfWeek(DayOfWeek dayOfWeek)
Creates an applicability satisfied on the given day-of-week.
|
static TemporalApplicability |
singleIsoWeek(int weekNumber)
Creates an applicability satisfied in weeks with the given ISO week number.
|
static TemporalApplicability |
singleMonth(Month month)
Creates an applicability satisfied in the given month.
|
static TemporalApplicability |
singleMonthDay(MonthDay monthDay)
Creates an applicability satisfied on the given month-day.
|
static TemporalApplicability |
singleYear(int year)
Creates an applicability satisfied in the given year.
|
static TemporalApplicability |
singleYear(Year year)
Creates an applicability satisfied in the given year.
|
abstract boolean |
test(Temporal temporal)
Checks whether this applicability is satisfied at the given temporal.
|
boolean |
test(Temporal temporal,
GeoRegion region)
Checks whether this applicability is satisfied at the given temporal in the given region.
|
static TemporalApplicability |
yearRange(int startYear,
int endYear)
Creates an applicability satisfied in the given range of years.
|
static TemporalApplicability |
yearRange(Year startYear,
Year endYear)
Creates an applicability satisfied in the given range of years.
|
holiday, parse, publicHoliday, schoolHoliday, weekendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitand, orpublic static TemporalApplicability always()
public static TemporalApplicability dateRange(LocalDate startDate, LocalDate endDate)
IllegalArgumentException - if startDate is nullIllegalArgumentException - if endDate is nullpublic static TemporalApplicability dayOfWeekAfter(int ordinal, DayOfWeek dayOfWeek, MonthDay monthDay)
IllegalArgumentException - if ordinal is 0IllegalArgumentException - if dayOfWeek is nullIllegalArgumentException - if monthDay is nullpublic static TemporalApplicability dayOfWeekBefore(int ordinal, DayOfWeek dayOfWeek, MonthDay monthDay)
IllegalArgumentException - if ordinal is 0IllegalArgumentException - if dayOfWeek is nullIllegalArgumentException - if monthDay is nullpublic static TemporalApplicability dayOfWeekRange(DayOfWeek startDayOfWeek, DayOfWeek endDayOfWeek)
IllegalArgumentException - if startDayOfWeek is nullIllegalArgumentException - if endDayOfWeek is nullpublic static TemporalApplicability evenIsoWeek()
public static TemporalApplicability isoWeekRange(int startWeekNumber, int endWeekNumber)
public static TemporalApplicability monthDayRange(MonthDay startMonthDay, MonthDay endMonthDay)
IllegalArgumentException - if startMonthDay is nullIllegalArgumentException - if endMonthDay is nullpublic static TemporalApplicability monthRange(Month startMonth, Month endMonth)
IllegalArgumentException - if startMonth is nullIllegalArgumentException - if endMonth is nullpublic TemporalApplicability negate()
public static TemporalApplicability never()
public static TemporalApplicability oddIsoWeek()
public static TemporalApplicability singleDate(LocalDate date)
IllegalArgumentException - if date is nullpublic static TemporalApplicability singleDayOfWeek(DayOfWeek dayOfWeek)
IllegalArgumentException - if dayOfWeek is nullpublic static TemporalApplicability singleIsoWeek(int weekNumber)
IllegalArgumentException - if weekNumber is not positiveIllegalArgumentException - if weekNumber is greater than 53public static TemporalApplicability singleMonth(Month month)
IllegalArgumentException - if month is nullpublic static TemporalApplicability singleMonthDay(MonthDay monthDay)
IllegalArgumentException - if monthDay is nullpublic static TemporalApplicability singleYear(int year)
public static TemporalApplicability singleYear(Year year)
IllegalArgumentException - if year is nullpublic abstract boolean test(Temporal temporal)
test in interface Predicate<Temporal>test in interface TemporalPredicateIllegalArgumentException - if temporal is nullpublic final boolean test(Temporal temporal, GeoRegion region)
GeoTemporalApplicabilitytest in interface BiPredicate<Temporal,GeoRegion>test in interface GeoTemporalPredicatetest in class GeoTemporalApplicabilitypublic static TemporalApplicability yearRange(int startYear, int endYear)
public static TemporalApplicability yearRange(Year startYear, Year endYear)
IllegalArgumentException - if startYear is nullIllegalArgumentException - if endYear is null