Uses of Interface
javax.time.calendar.DateAdjuster
-
Packages that use DateAdjuster Package Description javax.time.calendar Provides classes to manage the human time scale including date, time, date-time and time-zone representations. -
-
Uses of DateAdjuster in javax.time.calendar
Classes in javax.time.calendar that implement DateAdjuster Modifier and Type Class Description private static class
DateAdjusters.DayOfWeekInMonth
Class implementing day-of-week in month adjuster.private static class
DateAdjusters.Impl
Enum implementing the adjusters.private static class
DateAdjusters.RelativeDayOfWeek
Implementation of next, previous or current day-of-week.class
LocalDate
A date without a time-zone in the ISO-8601 calendar system, such as2007-12-03
.class
LocalDateTime
A date-time without a time-zone in the ISO-8601 calendar system, such as2007-12-03T10:15:30
.class
MonthDay
A month-day in the ISO-8601 calendar system, such as--12-03
.class
OffsetDate
A date with a zone offset from UTC in the ISO-8601 calendar system, such as2007-12-03+01:00
.class
OffsetDateTime
A date-time with a zone offset from UTC in the ISO-8601 calendar system, such as2007-12-03T10:15:30+01:00
.class
Year
A year in the ISO-8601 calendar system, such as2007
.class
YearMonth
A year-month in the ISO-8601 calendar system, such as2007-12
.Methods in javax.time.calendar that return DateAdjuster Modifier and Type Method Description static DateAdjuster
DateAdjusters. dayOfWeekInMonth(int ordinal, DayOfWeek dayOfWeek)
Returns the day-of-week in month adjuster, which returns a new date in the same month with the ordinal day-of-week.static DateAdjuster
DateAdjusters. firstDayOfMonth()
Returns the first day-of-month adjuster, which returns a new date with the day-of-month changed to be the first day of the month.static DateAdjuster
DateAdjusters. firstDayOfYear()
Returns the first day-of-year adjuster, which returns a new date with the day-of-year changed to be the first day of the year - January 1.static DateAdjuster
DateAdjusters. firstInMonth(DayOfWeek dayOfWeek)
Returns the first in month adjuster, which returns a new date in the same month with the first matching day-of-week.static DateAdjuster
DateAdjusters. lastDayOfMonth()
Returns the last day-of-month adjuster, which returns a new date with the day-of-month changed to be the last valid day of the month.static DateAdjuster
DateAdjusters. lastDayOfYear()
Returns the last day-of-year adjuster, which returns a new date with the day-of-year changed to be the last day of the year - December 31.static DateAdjuster
DateAdjusters. next(DayOfWeek dow)
Returns the next day-of-week adjuster, which adjusts the date to be the next of the specified day-of-week after the specified date.static DateAdjuster
DateAdjusters. nextNonWeekendDay()
Returns the next non weekend day adjuster, which adjusts the date one day forward skipping Saturday and Sunday.static DateAdjuster
DateAdjusters. nextOrCurrent(DayOfWeek dow)
Returns the next or current day-of-week adjuster, which adjusts the date to be be the next of the specified day-of-week, returning the input date if the day-of-week matched.static DateAdjuster
DateAdjusters. previous(DayOfWeek dow)
Returns the previous day-of-week adjuster, which adjusts the date to be the previous of the specified day-of-week after the specified date.static DateAdjuster
DateAdjusters. previousOrCurrent(DayOfWeek dow)
Returns the previous or current day-of-week adjuster, which adjusts the date to be be the previous of the specified day-of-week, returning the input date if the day-of-week matched.Methods in javax.time.calendar with parameters of type DateAdjuster Modifier and Type Method Description LocalDate
LocalDate. with(DateAdjuster adjuster)
Returns a copy of thisLocalDate
with the date altered using the adjuster.LocalDateTime
LocalDateTime. with(DateAdjuster adjuster)
Returns a copy of thisLocalDateTime
with the date altered using the adjuster.OffsetDate
OffsetDate. with(DateAdjuster adjuster)
Returns a copy of thisOffsetDate
with the date altered using the adjuster.OffsetDateTime
OffsetDateTime. with(DateAdjuster adjuster)
Returns a copy of this OffsetDateTime with the date altered using the adjuster.ZonedDateTime
ZonedDateTime. with(DateAdjuster adjuster)
Returns a copy of thisZonedDateTime
with the date altered using the adjuster.ZonedDateTime
ZonedDateTime. with(DateAdjuster adjuster, ZoneResolver resolver)
Returns a copy of thisZonedDateTime
with the date altered using the adjuster, providing a resolver to handle an invalid date-time.
-