Class MoreTemporalAdjusters
- java.lang.Object
-
- org.sellcom.geotemporal.time.MoreTemporalAdjusters
-
public class MoreTemporalAdjusters extends Object
More common and usefulTemporalAdjusters.- Since:
- 1.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TemporalAdjusteradventSunday()Returns an adjuster returning the (First) Advent Sunday in the same year as the adjusted date.static TemporalAdjusterascensionThursday()Returns an adjuster returning the Ascension Thursday (also known as Holy Thursday) in the same year as the adjusted date.static TemporalAdjusterashWednesday()Returns an adjuster returning the Ash Wednesday in the same year as the adjusted date.static TemporalAdjusterbussUndBettag()Returns an adjuster returning the "Buß- und Bettag" (Germany) in the same year as the adjusted date.static TemporalAdjustercleanMonday()Returns an adjuster returning the Clean Monday (also known as Ash Monday, Green Monday, or Pure Monday) in the same year as the adjusted date.static TemporalAdjustercorpusChristi()Returns an adjuster returning the day of the Corpus Christi feast (also known as Corpus Domini feast) in the same year as the adjusted date.static TemporalAdjusterdayOfWeekFollowing(int ordinal, DayOfWeek dayOfWeek)Returns an adjuster returning the given ordinal day-of-week following the adjusted date.static TemporalAdjusterdayOfWeekPreceding(int ordinal, DayOfWeek dayOfWeek)Returns an adjuster returning the given ordinal day-of-week preceding the adjusted date.static TemporalAdjustereasterMonday()Returns an adjuster returning the Easter Monday in the same year as the adjusted date.static TemporalAdjustereasterSunday()Returns an adjuster returning the Easter Sunday in the same year as the adjusted date.static TemporalAdjustergoodFriday()Returns an adjuster returning the Good Friday in the same year as the adjusted date.static TemporalAdjusterholySaturday()Returns an adjuster returning the Holy Saturday in the same year as the adjusted date.static TemporalAdjusterholyWednesday()Returns an adjuster returning the Holy Wednesday (also known as Spy Wednesday) in the same year as the adjusted date.static TemporalAdjustermaundyThursday()Returns an adjuster returning the Maundy Thursday (also known as Covenant Thursday, Holy Thursday, or Sheer Thursday) in the same year as the adjusted date.static TemporalAdjusternext(MonthDay monthDay)Returns an adjuster returning the given month-day following the adjusted date.static TemporalAdjusternextDay()Returns an adjuster returning the next day of the adjusted date.static TemporalAdjusternextLeapYear()Returns an adjuster returning the month and day of the adjusted date in the next leap year.static TemporalAdjusternextOrSame(MonthDay monthDay)Returns an adjuster returning the given month-day following (or same as) the adjusted date.static TemporalAdjusternextOrSameLeapYear()Returns an adjuster returning the month and day of the adjusted date in the next (or same) leap year.static TemporalAdjusternextOrSameWorkingDay(GeoRegion region)Returns an adjuster returning the next or same working day in the given region.static TemporalAdjusternextWorkingDay(GeoRegion region)Returns an adjuster returning the next working day in the given region.static TemporalAdjusterorthodoxAllSaintsDay()Returns an adjuster returning the Orthodox All Saints' Day in the same year as the adjusted date.static TemporalAdjusterorthodoxAscensionThursday()Returns an adjuster returning the Ascension Thursday (also known as Holy Thursday) in the same year as the adjusted date.static TemporalAdjusterorthodoxEasterMonday()Returns an adjuster returning the Easter Monday in the same year as the adjusted date.static TemporalAdjusterorthodoxEasterSunday()Returns an adjuster returning the Easter Sunday in the same year as the adjusted date.static TemporalAdjusterorthodoxGoodFriday()Returns an adjuster returning the Good Friday in the same year as the adjusted date.static TemporalAdjusterorthodoxHolySaturday()Returns an adjuster returning the Holy Saturday in the same year as the adjusted date.static TemporalAdjusterorthodoxHolyWednesday()Returns an adjuster returning the Holy Wednesday (also known as Holy and Great Wednesday) in the same year as the adjusted date.static TemporalAdjusterorthodoxMaundyThursday()Returns an adjuster returning the Maundy Thursday (also known as Covenant Thursday, Holy Thursday, or Sheer Thursday) in the same year as the adjusted date.static TemporalAdjusterorthodoxPalmSunday()Returns an adjuster returning the Palm Sunday in the same year as the adjusted date.static TemporalAdjusterorthodoxWhitMonday()Returns an adjuster returning the Whit(e) Monday (also known as Pentecost Monday) in the same year as the adjusted date.static TemporalAdjusterorthodoxWhitSunday()Returns an adjuster returning the Whit(e) Sunday (also known as Pentecost Sunday) in the same year as the adjusted date.static TemporalAdjusterpalmSunday()Returns an adjuster returning the Palm Sunday in the same year as the adjusted date.static TemporalAdjusterpastileBlajinilor()Returns an adjuster returning the "Paştile Blajinilor" (Moldova) in the same year as the adjusted date.static TemporalAdjusterprevious(MonthDay monthDay)Returns an adjuster returning the given month-day preceding the adjusted date.static TemporalAdjusterpreviousDay()Returns an adjuster returning the previous day of the adjusted date.static TemporalAdjusterpreviousLeapYear()Returns an adjuster returning the month and day of the adjusted date in the previous leap year.static TemporalAdjusterpreviousOrSame(MonthDay monthDay)Returns an adjuster returning the given month-day preceding (or same as) the adjusted date.static TemporalAdjusterpreviousOrSameLeapYear()Returns an adjuster returning the month and day of the adjusted date in the previous (or same) leap year.static TemporalAdjusterpreviousOrSameWorkingDay(GeoRegion region)Returns an adjuster returning the previous or same working day in the given region.static TemporalAdjusterpreviousWorkingDay(GeoRegion region)Returns an adjuster returning the previous working day in the given region.static TemporalAdjustershroveMonday()Returns an adjuster returning the Shrove Monday (also known as Collop Monday, Hall Monday, Merry Monday, or Rose Monday) in the same year as the adjusted date.static TemporalAdjustershroveTuesday()Returns an adjuster returning the Shrove Tuesday in the same year as the adjusted date.static TemporalAdjusterstoreBededag()Returns an adjuster returning the "store bededag" (Denmark) in the same year as the adjusted date.static TemporalAdjustertrinitySunday()Returns an adjuster returning the Trinity Sunday in the same year as the adjusted date.static TemporalAdjusterwhitMonday()Returns an adjuster returning the Whit(e) Monday (also known as Pentecost Monday) in the same year as the adjusted date.static TemporalAdjusterwhitSunday()Returns an adjuster returning the Whit(e) Sunday (also known as Pentecost Sunday) in the same year as the adjusted date.
-
-
-
Method Detail
-
adventSunday
public static TemporalAdjuster adventSunday()
Returns an adjuster returning the (First) Advent Sunday in the same year as the adjusted date.- Since:
- 1.0
-
ascensionThursday
public static TemporalAdjuster ascensionThursday()
Returns an adjuster returning the Ascension Thursday (also known as Holy Thursday) in the same year as the adjusted date.This method uses the rules corresponding to most of the Western Christian churches. For most of the Eastern Christian churches, use
orthodoxAscensionThursday()instead.- Since:
- 1.0
-
ashWednesday
public static TemporalAdjuster ashWednesday()
Returns an adjuster returning the Ash Wednesday in the same year as the adjusted date.- Since:
- 1.0
-
bussUndBettag
public static TemporalAdjuster bussUndBettag()
Returns an adjuster returning the "Buß- und Bettag" (Germany) in the same year as the adjusted date.- Since:
- 1.0
-
cleanMonday
public static TemporalAdjuster cleanMonday()
Returns an adjuster returning the Clean Monday (also known as Ash Monday, Green Monday, or Pure Monday) in the same year as the adjusted date.- Since:
- 1.0
-
corpusChristi
public static TemporalAdjuster corpusChristi()
Returns an adjuster returning the day of the Corpus Christi feast (also known as Corpus Domini feast) in the same year as the adjusted date.- Since:
- 1.0
-
dayOfWeekFollowing
public static TemporalAdjuster dayOfWeekFollowing(int ordinal, DayOfWeek dayOfWeek)
Returns an adjuster returning the given ordinal day-of-week following the adjusted date.- Throws:
IllegalArgumentException- ifordinalis zeroIllegalArgumentException- ifdayOfWeekisnull- Since:
- 1.0
-
dayOfWeekPreceding
public static TemporalAdjuster dayOfWeekPreceding(int ordinal, DayOfWeek dayOfWeek)
Returns an adjuster returning the given ordinal day-of-week preceding the adjusted date.- Throws:
IllegalArgumentException- ifordinalis zeroIllegalArgumentException- ifdayOfWeekisnull- Since:
- 1.0
-
easterMonday
public static TemporalAdjuster easterMonday()
Returns an adjuster returning the Easter Monday in the same year as the adjusted date.This method uses the rules corresponding to most of the Western Christian churches. For most of the Eastern Christian churches, use
orthodoxEasterMonday()instead.- Since:
- 1.0
-
easterSunday
public static TemporalAdjuster easterSunday()
Returns an adjuster returning the Easter Sunday in the same year as the adjusted date.This method uses the 21 March in Gregorian Calendar as the starting point in determining the date of the Easter Sunday. That corresponds to most of the Western Christian churches. For most of the Eastern Christian churches, use
orthodoxEasterSunday()instead.- Since:
- 1.0
-
goodFriday
public static TemporalAdjuster goodFriday()
Returns an adjuster returning the Good Friday in the same year as the adjusted date.This method uses the rules corresponding to most of the Western Christian churches. For most of the Eastern Christian churches, use
orthodoxGoodFriday()instead.- Since:
- 1.0
-
holySaturday
public static TemporalAdjuster holySaturday()
Returns an adjuster returning the Holy Saturday in the same year as the adjusted date.This method uses the rules corresponding to most of the Western Christian churches. For most of the Eastern Christian churches, use
orthodoxHolySaturday()instead.- Since:
- 1.0
-
holyWednesday
public static TemporalAdjuster holyWednesday()
Returns an adjuster returning the Holy Wednesday (also known as Spy Wednesday) in the same year as the adjusted date.This method uses the rules corresponding to most of the Western Christian churches. For most of the Eastern Christian churches, use
orthodoxHolyWednesday()instead.- Since:
- 1.0
-
maundyThursday
public static TemporalAdjuster maundyThursday()
Returns an adjuster returning the Maundy Thursday (also known as Covenant Thursday, Holy Thursday, or Sheer Thursday) in the same year as the adjusted date.This method uses the rules corresponding to most of the Western Christian churches. For most of the Eastern Christian churches, use
orthodoxMaundyThursday()instead.- Since:
- 1.0
-
next
public static TemporalAdjuster next(MonthDay monthDay)
Returns an adjuster returning the given month-day following the adjusted date.- Throws:
IllegalArgumentException- ifmonthDayisnull- Since:
- 1.0
-
nextDay
public static TemporalAdjuster nextDay()
Returns an adjuster returning the next day of the adjusted date.- Since:
- 1.0
-
nextLeapYear
public static TemporalAdjuster nextLeapYear()
Returns an adjuster returning the month and day of the adjusted date in the next leap year.- Since:
- 1.0
-
nextOrSame
public static TemporalAdjuster nextOrSame(MonthDay monthDay)
Returns an adjuster returning the given month-day following (or same as) the adjusted date.- Throws:
IllegalArgumentException- ifmonthDayisnull- Since:
- 1.0
-
nextOrSameLeapYear
public static TemporalAdjuster nextOrSameLeapYear()
Returns an adjuster returning the month and day of the adjusted date in the next (or same) leap year.- Since:
- 1.0
-
nextOrSameWorkingDay
public static TemporalAdjuster nextOrSameWorkingDay(GeoRegion region)
Returns an adjuster returning the next or same working day in the given region.- Throws:
IllegalArgumentException- ifregionisnull- Since:
- 1.0
- See Also:
Temporals.isWorkingDay(java.time.temporal.Temporal, GeoRegion)
-
nextWorkingDay
public static TemporalAdjuster nextWorkingDay(GeoRegion region)
Returns an adjuster returning the next working day in the given region.- Throws:
IllegalArgumentException- ifregionisnull- Since:
- 1.0
- See Also:
Temporals.isWorkingDay(java.time.temporal.Temporal, GeoRegion)
-
orthodoxAllSaintsDay
public static TemporalAdjuster orthodoxAllSaintsDay()
Returns an adjuster returning the Orthodox All Saints' Day in the same year as the adjusted date.- Since:
- 1.0
-
orthodoxAscensionThursday
public static TemporalAdjuster orthodoxAscensionThursday()
Returns an adjuster returning the Ascension Thursday (also known as Holy Thursday) in the same year as the adjusted date.This method uses the rules corresponding to most of the Eastern Christian churches. For most of the Western Christian churches, use
ascensionThursday()instead.- Since:
- 1.0
-
orthodoxEasterMonday
public static TemporalAdjuster orthodoxEasterMonday()
Returns an adjuster returning the Easter Monday in the same year as the adjusted date.This method uses the rules corresponding to most of the Eastern Christian churches. For most of the Western Christian churches, use
easterMonday()instead.- Since:
- 1.0
-
orthodoxEasterSunday
public static TemporalAdjuster orthodoxEasterSunday()
Returns an adjuster returning the Easter Sunday in the same year as the adjusted date.This method uses the 21 March in Julian Calendar as the starting point in determining the date of the Easter Sunday. That corresponds to most of the Eastern Christian churches. For most of the Western Christian churches, use
easterSunday()instead.- Since:
- 1.0
-
orthodoxGoodFriday
public static TemporalAdjuster orthodoxGoodFriday()
Returns an adjuster returning the Good Friday in the same year as the adjusted date.This method uses the rules corresponding to most of the Eastern Christian churches. For most of the Western Christian churches, use
goodFriday()instead.- Since:
- 1.0
-
orthodoxHolySaturday
public static TemporalAdjuster orthodoxHolySaturday()
Returns an adjuster returning the Holy Saturday in the same year as the adjusted date.This method uses the rules corresponding to most of the Eastern Christian churches. For most of the Western Christian churches, use
holySaturday()instead.- Since:
- 1.0
-
orthodoxHolyWednesday
public static TemporalAdjuster orthodoxHolyWednesday()
Returns an adjuster returning the Holy Wednesday (also known as Holy and Great Wednesday) in the same year as the adjusted date.This method uses the rules corresponding to most of the Eastern Christian churches. For most of the Western Christian churches, use
holyWednesday()instead.- Since:
- 1.0
-
orthodoxMaundyThursday
public static TemporalAdjuster orthodoxMaundyThursday()
Returns an adjuster returning the Maundy Thursday (also known as Covenant Thursday, Holy Thursday, or Sheer Thursday) in the same year as the adjusted date.This method uses the rules corresponding to most of the Eastern Christian churches. For most of the Western Christian churches, use
maundyThursday()instead.- Since:
- 1.0
-
orthodoxPalmSunday
public static TemporalAdjuster orthodoxPalmSunday()
Returns an adjuster returning the Palm Sunday in the same year as the adjusted date.This method uses the rules corresponding to most of the Eastern Christian churches. For most of the Western Christian churches, use
palmSunday()instead.- Since:
- 1.0
-
orthodoxWhitMonday
public static TemporalAdjuster orthodoxWhitMonday()
Returns an adjuster returning the Whit(e) Monday (also known as Pentecost Monday) in the same year as the adjusted date.This method uses the rules corresponding to most of the Eastern Christian churches. For most of the Western Christian churches, use
whitMonday()instead.- Since:
- 1.0
-
orthodoxWhitSunday
public static TemporalAdjuster orthodoxWhitSunday()
Returns an adjuster returning the Whit(e) Sunday (also known as Pentecost Sunday) in the same year as the adjusted date.This method uses the rules corresponding to most of the Eastern Christian churches. For most of the Western Christian churches, use
whitSunday()instead.- Since:
- 1.0
-
palmSunday
public static TemporalAdjuster palmSunday()
Returns an adjuster returning the Palm Sunday in the same year as the adjusted date.This method uses the rules corresponding to most of the Western Christian churches. For most of the Eastern Christian churches, use
orthodoxPalmSunday()instead.- Since:
- 1.0
-
pastileBlajinilor
public static TemporalAdjuster pastileBlajinilor()
Returns an adjuster returning the "Paştile Blajinilor" (Moldova) in the same year as the adjusted date.- Since:
- 1.0
-
previous
public static TemporalAdjuster previous(MonthDay monthDay)
Returns an adjuster returning the given month-day preceding the adjusted date.- Throws:
IllegalArgumentException- ifmonthDayisnull- Since:
- 1.0
-
previousDay
public static TemporalAdjuster previousDay()
Returns an adjuster returning the previous day of the adjusted date.- Since:
- 1.0
-
previousLeapYear
public static TemporalAdjuster previousLeapYear()
Returns an adjuster returning the month and day of the adjusted date in the previous leap year.- Since:
- 1.0
-
previousOrSame
public static TemporalAdjuster previousOrSame(MonthDay monthDay)
Returns an adjuster returning the given month-day preceding (or same as) the adjusted date.- Throws:
IllegalArgumentException- ifmonthDayisnull- Since:
- 1.0
-
previousOrSameLeapYear
public static TemporalAdjuster previousOrSameLeapYear()
Returns an adjuster returning the month and day of the adjusted date in the previous (or same) leap year.- Since:
- 1.0
-
previousOrSameWorkingDay
public static TemporalAdjuster previousOrSameWorkingDay(GeoRegion region)
Returns an adjuster returning the previous or same working day in the given region.- Throws:
IllegalArgumentException- ifregionisnull- Since:
- 1.0
- See Also:
Temporals.isWorkingDay(java.time.temporal.Temporal, GeoRegion)
-
previousWorkingDay
public static TemporalAdjuster previousWorkingDay(GeoRegion region)
Returns an adjuster returning the previous working day in the given region.- Throws:
IllegalArgumentException- ifregionisnull- Since:
- 1.0
- See Also:
Temporals.isWorkingDay(java.time.temporal.Temporal, GeoRegion)
-
shroveMonday
public static TemporalAdjuster shroveMonday()
Returns an adjuster returning the Shrove Monday (also known as Collop Monday, Hall Monday, Merry Monday, or Rose Monday) in the same year as the adjusted date.- Since:
- 1.0
-
shroveTuesday
public static TemporalAdjuster shroveTuesday()
Returns an adjuster returning the Shrove Tuesday in the same year as the adjusted date.- Since:
- 1.0
-
storeBededag
public static TemporalAdjuster storeBededag()
Returns an adjuster returning the "store bededag" (Denmark) in the same year as the adjusted date.- Since:
- 1.0
-
trinitySunday
public static TemporalAdjuster trinitySunday()
Returns an adjuster returning the Trinity Sunday in the same year as the adjusted date.This method uses the rules corresponding to most of the Western Christian churches. For most of the Eastern Christian churches, use
orthodoxWhitSunday()instead.- Since:
- 1.0
-
whitMonday
public static TemporalAdjuster whitMonday()
Returns an adjuster returning the Whit(e) Monday (also known as Pentecost Monday) in the same year as the adjusted date.This method uses the rules corresponding to most of the Western Christian churches. For most of the Eastern Christian churches, use
orthodoxWhitMonday()instead.- Since:
- 1.0
-
whitSunday
public static TemporalAdjuster whitSunday()
Returns an adjuster returning the Whit(e) Sunday (also known as Pentecost Sunday) in the same year as the adjusted date.This method uses the rules corresponding to most of the Western Christian churches. For most of the Eastern Christian churches, use
orthodoxWhitSunday()instead.- Since:
- 1.0
-
-