public class MoreTemporalAdjusters extends Object
TemporalAdjusters.| Modifier and Type | Method and Description |
|---|---|
static TemporalAdjuster |
adventSunday()
Returns an adjuster returning the (First) Advent Sunday in the same year as the adjusted date.
|
static TemporalAdjuster |
ascensionThursday()
Returns an adjuster returning the Ascension Thursday (also known as Holy Thursday) in the same year as the adjusted date.
|
static TemporalAdjuster |
ashWednesday()
Returns an adjuster returning the Ash Wednesday in the same year as the adjusted date.
|
static TemporalAdjuster |
bussUndBettag()
Returns an adjuster returning the "Buß- und Bettag" (Germany) in the same year as the adjusted date.
|
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.
|
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.
|
static TemporalAdjuster |
dayOfWeekFollowing(int ordinal,
DayOfWeek dayOfWeek)
Returns an adjuster returning the given ordinal day-of-week following the adjusted date.
|
static TemporalAdjuster |
dayOfWeekPreceding(int ordinal,
DayOfWeek dayOfWeek)
Returns an adjuster returning the given ordinal day-of-week preceding the adjusted date.
|
static TemporalAdjuster |
easterMonday()
Returns an adjuster returning the Easter Monday in the same year as the adjusted date.
|
static TemporalAdjuster |
easterSunday()
Returns an adjuster returning the Easter Sunday in the same year as the adjusted date.
|
static TemporalAdjuster |
goodFriday()
Returns an adjuster returning the Good Friday in the same year as the adjusted date.
|
static TemporalAdjuster |
holySaturday()
Returns an adjuster returning the Holy Saturday in the same year as the adjusted date.
|
static TemporalAdjuster |
holyWednesday()
Returns an adjuster returning the Holy Wednesday (also known as Spy Wednesday) in the same year as the adjusted date.
|
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.
|
static TemporalAdjuster |
next(MonthDay monthDay)
Returns an adjuster returning the given month-day following the adjusted date.
|
static TemporalAdjuster |
nextDay()
Returns an adjuster returning the next day of the adjusted date.
|
static TemporalAdjuster |
nextLeapYear()
Returns an adjuster returning the month and day of the adjusted date in the next leap year.
|
static TemporalAdjuster |
nextOrSame(MonthDay monthDay)
Returns an adjuster returning the given month-day following (or same as) the adjusted date.
|
static TemporalAdjuster |
nextOrSameLeapYear()
Returns an adjuster returning the month and day of the adjusted date in the next (or same) leap year.
|
static TemporalAdjuster |
nextOrSameWorkingDay(GeoRegion region)
Returns an adjuster returning the next or same working day in the given region.
|
static TemporalAdjuster |
nextWorkingDay(GeoRegion region)
Returns an adjuster returning the next working day in the given region.
|
static TemporalAdjuster |
orthodoxAllSaintsDay()
Returns an adjuster returning the Orthodox All Saints' Day in the same year as the adjusted date.
|
static TemporalAdjuster |
orthodoxAscensionThursday()
Returns an adjuster returning the Ascension Thursday (also known as Holy Thursday) in the same year as the adjusted date.
|
static TemporalAdjuster |
orthodoxEasterMonday()
Returns an adjuster returning the Easter Monday in the same year as the adjusted date.
|
static TemporalAdjuster |
orthodoxEasterSunday()
Returns an adjuster returning the Easter Sunday in the same year as the adjusted date.
|
static TemporalAdjuster |
orthodoxGoodFriday()
Returns an adjuster returning the Good Friday in the same year as the adjusted date.
|
static TemporalAdjuster |
orthodoxHolySaturday()
Returns an adjuster returning the Holy Saturday in the same year as the adjusted date.
|
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.
|
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.
|
static TemporalAdjuster |
orthodoxPalmSunday()
Returns an adjuster returning the Palm Sunday in the same year as the adjusted date.
|
static TemporalAdjuster |
orthodoxWhitMonday()
Returns an adjuster returning the Whit(e) Monday (also known as Pentecost Monday) in the same year as the adjusted date.
|
static TemporalAdjuster |
orthodoxWhitSunday()
Returns an adjuster returning the Whit(e) Sunday (also known as Pentecost Sunday) in the same year as the adjusted date.
|
static TemporalAdjuster |
palmSunday()
Returns an adjuster returning the Palm Sunday in the same year as the adjusted date.
|
static TemporalAdjuster |
previous(MonthDay monthDay)
Returns an adjuster returning the given month-day preceding the adjusted date.
|
static TemporalAdjuster |
previousDay()
Returns an adjuster returning the previous day of the adjusted date.
|
static TemporalAdjuster |
previousLeapYear()
Returns an adjuster returning the month and day of the adjusted date in the previous leap year.
|
static TemporalAdjuster |
previousOrSame(MonthDay monthDay)
Returns an adjuster returning the given month-day preceding (or same as) the adjusted date.
|
static TemporalAdjuster |
previousOrSameLeapYear()
Returns an adjuster returning the month and day of the adjusted date in the previous (or same) leap year.
|
static TemporalAdjuster |
previousOrSameWorkingDay(GeoRegion region)
Returns an adjuster returning the previous or same working day in the given region.
|
static TemporalAdjuster |
previousWorkingDay(GeoRegion region)
Returns an adjuster returning the previous working day in the given region.
|
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.
|
static TemporalAdjuster |
shroveTuesday()
Returns an adjuster returning the Shrove Tuesday in the same year as the adjusted date.
|
static TemporalAdjuster |
storeBededag()
Returns an adjuster returning the "store bededag" (Denmark) in the same year as the adjusted date.
|
static TemporalAdjuster |
trinitySunday()
Returns an adjuster returning the Trinity Sunday in the same year as the adjusted date.
|
static TemporalAdjuster |
whitMonday()
Returns an adjuster returning the Whit(e) Monday (also known as Pentecost Monday) in the same year as the adjusted date.
|
static TemporalAdjuster |
whitSunday()
Returns an adjuster returning the Whit(e) Sunday (also known as Pentecost Sunday) in the same year as the adjusted date.
|
public static TemporalAdjuster adventSunday()
public static TemporalAdjuster ascensionThursday()
This method uses the rules corresponding to most of the Western Christian churches.
For most of the Eastern Christian churches, use orthodoxAscensionThursday() instead.
public static TemporalAdjuster ashWednesday()
public static TemporalAdjuster bussUndBettag()
public static TemporalAdjuster cleanMonday()
public static TemporalAdjuster corpusChristi()
public static TemporalAdjuster dayOfWeekFollowing(int ordinal, DayOfWeek dayOfWeek)
IllegalArgumentException - if ordinal is zeroIllegalArgumentException - if dayOfWeek is nullpublic static TemporalAdjuster dayOfWeekPreceding(int ordinal, DayOfWeek dayOfWeek)
IllegalArgumentException - if ordinal is zeroIllegalArgumentException - if dayOfWeek is nullpublic static TemporalAdjuster easterMonday()
This method uses the rules corresponding to most of the Western Christian churches.
For most of the Eastern Christian churches, use orthodoxEasterMonday() instead.
public static TemporalAdjuster easterSunday()
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.
public static TemporalAdjuster goodFriday()
This method uses the rules corresponding to most of the Western Christian churches.
For most of the Eastern Christian churches, use orthodoxGoodFriday() instead.
public static TemporalAdjuster holySaturday()
This method uses the rules corresponding to most of the Western Christian churches.
For most of the Eastern Christian churches, use orthodoxHolySaturday() instead.
public static TemporalAdjuster holyWednesday()
This method uses the rules corresponding to most of the Western Christian churches.
For most of the Eastern Christian churches, use orthodoxHolyWednesday() instead.
public static TemporalAdjuster maundyThursday()
This method uses the rules corresponding to most of the Western Christian churches.
For most of the Eastern Christian churches, use orthodoxMaundyThursday() instead.
public static TemporalAdjuster next(MonthDay monthDay)
IllegalArgumentException - if monthDay is nullpublic static TemporalAdjuster nextDay()
public static TemporalAdjuster nextLeapYear()
public static TemporalAdjuster nextOrSame(MonthDay monthDay)
IllegalArgumentException - if monthDay is nullpublic static TemporalAdjuster nextOrSameLeapYear()
public static TemporalAdjuster nextOrSameWorkingDay(GeoRegion region)
IllegalArgumentException - if region is nullTemporals.isWorkingDay(java.time.temporal.Temporal, GeoRegion)public static TemporalAdjuster nextWorkingDay(GeoRegion region)
IllegalArgumentException - if region is nullTemporals.isWorkingDay(java.time.temporal.Temporal, GeoRegion)public static TemporalAdjuster orthodoxAllSaintsDay()
public static TemporalAdjuster orthodoxAscensionThursday()
This method uses the rules corresponding to most of the Eastern Christian churches.
For most of the Western Christian churches, use ascensionThursday() instead.
public static TemporalAdjuster orthodoxEasterMonday()
This method uses the rules corresponding to most of the Eastern Christian churches.
For most of the Western Christian churches, use easterMonday() instead.
public static TemporalAdjuster orthodoxEasterSunday()
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.
public static TemporalAdjuster orthodoxGoodFriday()
This method uses the rules corresponding to most of the Eastern Christian churches.
For most of the Western Christian churches, use goodFriday() instead.
public static TemporalAdjuster orthodoxHolySaturday()
This method uses the rules corresponding to most of the Eastern Christian churches.
For most of the Western Christian churches, use holySaturday() instead.
public static TemporalAdjuster orthodoxHolyWednesday()
This method uses the rules corresponding to most of the Eastern Christian churches.
For most of the Western Christian churches, use holyWednesday() instead.
public static TemporalAdjuster orthodoxMaundyThursday()
This method uses the rules corresponding to most of the Eastern Christian churches.
For most of the Western Christian churches, use maundyThursday() instead.
public static TemporalAdjuster orthodoxPalmSunday()
This method uses the rules corresponding to most of the Eastern Christian churches.
For most of the Western Christian churches, use palmSunday() instead.
public static TemporalAdjuster orthodoxWhitMonday()
This method uses the rules corresponding to most of the Eastern Christian churches.
For most of the Western Christian churches, use whitMonday() instead.
public static TemporalAdjuster orthodoxWhitSunday()
This method uses the rules corresponding to most of the Eastern Christian churches.
For most of the Western Christian churches, use whitSunday() instead.
public static TemporalAdjuster palmSunday()
This method uses the rules corresponding to most of the Western Christian churches.
For most of the Eastern Christian churches, use orthodoxPalmSunday() instead.
public static TemporalAdjuster previous(MonthDay monthDay)
IllegalArgumentException - if monthDay is nullpublic static TemporalAdjuster previousDay()
public static TemporalAdjuster previousLeapYear()
public static TemporalAdjuster previousOrSame(MonthDay monthDay)
IllegalArgumentException - if monthDay is nullpublic static TemporalAdjuster previousOrSameLeapYear()
public static TemporalAdjuster previousOrSameWorkingDay(GeoRegion region)
IllegalArgumentException - if region is nullTemporals.isWorkingDay(java.time.temporal.Temporal, GeoRegion)public static TemporalAdjuster previousWorkingDay(GeoRegion region)
IllegalArgumentException - if region is nullTemporals.isWorkingDay(java.time.temporal.Temporal, GeoRegion)public static TemporalAdjuster shroveMonday()
public static TemporalAdjuster shroveTuesday()
public static TemporalAdjuster storeBededag()
public static TemporalAdjuster trinitySunday()
This method uses the rules corresponding to most of the Western Christian churches.
For most of the Eastern Christian churches, use orthodoxWhitSunday() instead.
public static TemporalAdjuster whitMonday()
This method uses the rules corresponding to most of the Western Christian churches.
For most of the Eastern Christian churches, use orthodoxWhitMonday() instead.
public static TemporalAdjuster whitSunday()
This method uses the rules corresponding to most of the Western Christian churches.
For most of the Eastern Christian churches, use orthodoxWhitSunday() instead.