| Package | Description |
|---|---|
| org.sellcom.geotemporal.geography | |
| org.sellcom.geotemporal.time | |
| org.sellcom.geotemporal.time.applicability |
| Modifier and Type | Field and Description |
|---|---|
static GeoRegion |
GeoRegion.ROOT
The root region.
|
| Modifier and Type | Method and Description |
|---|---|
GeoRegion |
GeoRegion.atLevel(int level)
Returns this region limited to the given administrative level.
|
static GeoRegion |
GeoRegion.getDefault()
Returns the default region.
|
GeoRegion |
GeoRegion.getParent()
Returns the immediate parent of this region.
|
static GeoRegion |
GeoRegion.parse(String code)
Returns a region corresponding to the given code.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
GeoRegion.setDefault(GeoRegion region)
Sets the default region.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
Temporals.isHoliday(Temporal temporal,
GeoRegion region,
EnumSet<HolidayType> types)
Checks whether the given temporal is a holiday of any of the given types in the given region.
|
static boolean |
Temporals.isPublicHoliday(Temporal temporal,
GeoRegion region)
Checks whether the given temporal is a public holiday in the given region.
|
static boolean |
Temporals.isSchoolHoliday(Temporal temporal,
GeoRegion region)
Checks whether the given date is a school holiday in the given region.
|
static boolean |
Temporals.isWeekend(Temporal temporal,
GeoRegion region)
Checks whether the given temporal is a weekend in the given region.
|
static boolean |
Temporals.isWorkingDay(Temporal temporal,
GeoRegion region)
Checks whether the given temporal is a working day in the given region.
|
static TemporalAdjuster |
MoreTemporalAdjusters.nextOrSameWorkingDay(GeoRegion region)
Returns an adjuster returning the next or same working day in the given region.
|
static TemporalAdjuster |
MoreTemporalAdjusters.nextWorkingDay(GeoRegion region)
Returns an adjuster returning the next working day in the given region.
|
static TemporalAdjuster |
MoreTemporalAdjusters.previousOrSameWorkingDay(GeoRegion region)
Returns an adjuster returning the previous or same working day in the given region.
|
static TemporalAdjuster |
MoreTemporalAdjusters.previousWorkingDay(GeoRegion region)
Returns an adjuster returning the previous working day in the given region.
|
boolean |
GeoTemporalPredicate.test(Temporal temporal,
GeoRegion region)
Evaluates this predicate at the given temporal in the context of the given region.
|
boolean |
HolidayPredicate.test(Temporal temporal,
GeoRegion region,
EnumSet<HolidayType> types)
Checks whether the given temporal is a holiday in the given region.
|
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
GeoTemporalApplicability.test(Temporal temporal,
GeoRegion region)
Checks whether this applicability is satisfied at the given temporal in the given region.
|
boolean |
TemporalApplicability.test(Temporal temporal,
GeoRegion region) |