Uses of Interface
java.time.temporal.TemporalAdjuster
-
Packages that use TemporalAdjuster Package Description java.time The main API for dates, times, instants, and durations.java.time.chrono Generic API for calendar systems other than the default ISO.java.time.temporal Access to date and time using fields and units, and date time adjusters. -
-
Uses of TemporalAdjuster in java.time
Classes in java.time that implement TemporalAdjuster Modifier and Type Class Description classDayOfWeekA day-of-week, such as 'Tuesday'.classInstantAn instantaneous point on the time-line.classLocalDateA date without a time-zone in the ISO-8601 calendar system, such as2007-12-03.classLocalDateTimeA date-time without a time-zone in the ISO-8601 calendar system, such as2007-12-03T10:15:30.classLocalTimeA time without a time-zone in the ISO-8601 calendar system, such as10:15:30.classMonthA month-of-year, such as 'July'.classMonthDayA month-day in the ISO-8601 calendar system, such as--12-03.classOffsetDateTimeA date-time with an offset from UTC/Greenwich in the ISO-8601 calendar system, such as2007-12-03T10:15:30+01:00.classOffsetTimeA time with an offset from UTC/Greenwich in the ISO-8601 calendar system, such as10:15:30+01:00.classYearA year in the ISO-8601 calendar system, such as2007.classYearMonthA year-month in the ISO-8601 calendar system, such as2007-12.classZoneOffsetA time-zone offset from Greenwich/UTC, such as+02:00.Methods in java.time with parameters of type TemporalAdjuster Modifier and Type Method Description InstantInstant. with(TemporalAdjuster adjuster)Returns an adjusted copy of this instant.LocalDateLocalDate. with(TemporalAdjuster adjuster)Returns an adjusted copy of this date.LocalDateTimeLocalDateTime. with(TemporalAdjuster adjuster)Returns an adjusted copy of this date-time.LocalTimeLocalTime. with(TemporalAdjuster adjuster)Returns an adjusted copy of this time.OffsetDateTimeOffsetDateTime. with(TemporalAdjuster adjuster)Returns an adjusted copy of this date-time.OffsetTimeOffsetTime. with(TemporalAdjuster adjuster)Returns an adjusted copy of this time.YearYear. with(TemporalAdjuster adjuster)Returns an adjusted copy of this year.YearMonthYearMonth. with(TemporalAdjuster adjuster)Returns an adjusted copy of this year-month.ZonedDateTimeZonedDateTime. with(TemporalAdjuster adjuster)Returns an adjusted copy of this date-time. -
Uses of TemporalAdjuster in java.time.chrono
Subinterfaces of TemporalAdjuster in java.time.chrono Modifier and Type Interface Description interfaceChronoLocalDateA date without time-of-day or time-zone in an arbitrary chronology, intended for advanced globalization use cases.interfaceChronoLocalDateTime<D extends ChronoLocalDate>A date-time without a time-zone in an arbitrary chronology, intended for advanced globalization use cases.interfaceEraAn era of the time-line.Classes in java.time.chrono that implement TemporalAdjuster Modifier and Type Class Description classHijrahDateA date in the Hijrah calendar system.classHijrahEraAn era in the Hijrah calendar system.classIsoEraAn era in the ISO calendar system.classJapaneseDateA date in the Japanese Imperial calendar system.classJapaneseEraAn era in the Japanese Imperial calendar system.classMinguoDateA date in the Minguo calendar system.classMinguoEraAn era in the Minguo calendar system.classThaiBuddhistDateA date in the Thai Buddhist calendar system.classThaiBuddhistEraAn era in the Thai Buddhist calendar system.Methods in java.time.chrono with parameters of type TemporalAdjuster Modifier and Type Method Description default ChronoLocalDateChronoLocalDate. with(TemporalAdjuster adjuster)Returns an adjusted object of the same type as this object with the adjustment made.default ChronoLocalDateTime<D>ChronoLocalDateTime. with(TemporalAdjuster adjuster)Returns an adjusted object of the same type as this object with the adjustment made.default ChronoZonedDateTime<D>ChronoZonedDateTime. with(TemporalAdjuster adjuster)Returns an adjusted object of the same type as this object with the adjustment made.HijrahDateHijrahDate. with(TemporalAdjuster adjuster)Returns an adjusted object of the same type as this object with the adjustment made.JapaneseDateJapaneseDate. with(TemporalAdjuster adjuster)Returns an adjusted object of the same type as this object with the adjustment made.MinguoDateMinguoDate. with(TemporalAdjuster adjuster)Returns an adjusted object of the same type as this object with the adjustment made.ThaiBuddhistDateThaiBuddhistDate. with(TemporalAdjuster adjuster)Returns an adjusted object of the same type as this object with the adjustment made. -
Uses of TemporalAdjuster in java.time.temporal
Methods in java.time.temporal that return TemporalAdjuster Modifier and Type Method Description static TemporalAdjusterTemporalAdjusters. dayOfWeekInMonth(int ordinal, DayOfWeek dayOfWeek)Returns the day-of-week in month adjuster, which returns a new date with the ordinal day-of-week based on the month.static TemporalAdjusterTemporalAdjusters. firstDayOfMonth()Returns the "first day of month" adjuster, which returns a new date set to the first day of the current month.static TemporalAdjusterTemporalAdjusters. firstDayOfNextMonth()Returns the "first day of next month" adjuster, which returns a new date set to the first day of the next month.static TemporalAdjusterTemporalAdjusters. firstDayOfNextYear()Returns the "first day of next year" adjuster, which returns a new date set to the first day of the next year.static TemporalAdjusterTemporalAdjusters. firstDayOfYear()Returns the "first day of year" adjuster, which returns a new date set to the first day of the current year.static TemporalAdjusterTemporalAdjusters. 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 TemporalAdjusterTemporalAdjusters. lastDayOfMonth()Returns the "last day of month" adjuster, which returns a new date set to the last day of the current month.static TemporalAdjusterTemporalAdjusters. lastDayOfYear()Returns the "last day of year" adjuster, which returns a new date set to the last day of the current year.static TemporalAdjusterTemporalAdjusters. lastInMonth(DayOfWeek dayOfWeek)Returns the last in month adjuster, which returns a new date in the same month with the last matching day-of-week.static TemporalAdjusterTemporalAdjusters. next(DayOfWeek dayOfWeek)Returns the next day-of-week adjuster, which adjusts the date to the first occurrence of the specified day-of-week after the date being adjusted.static TemporalAdjusterTemporalAdjusters. nextOrSame(DayOfWeek dayOfWeek)Returns the next-or-same day-of-week adjuster, which adjusts the date to the first occurrence of the specified day-of-week after the date being adjusted unless it is already on that day in which case the same object is returned.static TemporalAdjusterTemporalAdjusters. ofDateAdjuster(UnaryOperator<LocalDate> dateBasedAdjuster)Obtains aTemporalAdjusterthat wraps a date adjuster.static TemporalAdjusterTemporalAdjusters. previous(DayOfWeek dayOfWeek)Returns the previous day-of-week adjuster, which adjusts the date to the first occurrence of the specified day-of-week before the date being adjusted.static TemporalAdjusterTemporalAdjusters. previousOrSame(DayOfWeek dayOfWeek)Returns the previous-or-same day-of-week adjuster, which adjusts the date to the first occurrence of the specified day-of-week before the date being adjusted unless it is already on that day in which case the same object is returned.Methods in java.time.temporal with parameters of type TemporalAdjuster Modifier and Type Method Description default TemporalTemporal. with(TemporalAdjuster adjuster)Returns an adjusted object of the same type as this object with the adjustment made.
-