Uses of Interface
javax.time.calendar.DateResolver
Packages that use DateResolver
Package
Description
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
-
Uses of DateResolver in javax.time.calendar
Classes in javax.time.calendar that implement DateResolverModifier and TypeClassDescriptionprivate static classClass implementing nextValid resolver.private static classClass implementing partLenient resolver.private static classClass implementing previousValid resolver.private static classClass implementing strict resolver.Fields in javax.time.calendar declared as DateResolverModifier and TypeFieldDescriptionprivate final DateResolverCalendricalContext.dateResolverWhether to use a date resolver for resolving dates.private static final DateResolverDateResolvers.NextValid.INSTANCEThe singleton instance.private static final DateResolverDateResolvers.PartLenient.INSTANCEThe singleton instance.private static final DateResolverDateResolvers.PreviousValid.INSTANCEThe singleton instance.private static final DateResolverDateResolvers.Strict.INSTANCEThe singleton instance.Methods in javax.time.calendar that return DateResolverModifier and TypeMethodDescriptionCalendricalContext.getDateResolver()Gets the date resolver to use.static DateResolverDateResolvers.nextValid()Returns the next valid day resolver, which adjusts the date to be valid by moving to the first of the next month.static DateResolverDateResolvers.partLenient()Returns the part lenient resolver, which adjusts the date to be valid by moving it to the next month by the number of days that are invalid up to the 31st of the month.static DateResolverDateResolvers.previousValid()Returns the previous valid day resolver, which adjusts the date to be valid by moving to the last valid day of the month.static DateResolverDateResolvers.strict()Returns the strict resolver which does not manipulate the state in any way, resulting in an exception for all invalid values.Methods in javax.time.calendar with parameters of type DateResolverModifier and TypeMethodDescriptionMonthDay.adjustDate(LocalDate date, DateResolver resolver) Adjusts a date to have the value of this month-day, using a resolver to handle the case when the day-of-month becomes invalid.Year.adjustDate(LocalDate date, DateResolver resolver) Adjusts a date to have the value of this year, using a resolver to handle the case when the day-of-month becomes invalid.YearMonth.adjustDate(LocalDate date, DateResolver resolver) Adjusts a date to have the value of this year-month, using a resolver to handle the case when the day-of-month becomes invalid.LocalDate.minusMonths(long months, DateResolver dateResolver) Returns a copy of thisLocalDatewith the specified period in months subtracted.LocalDateTime.minusMonths(long months, DateResolver dateResolver) Returns a copy of thisLocalDateTimewith the specified period in months subtracted.OffsetDate.minusMonths(long months, DateResolver dateResolver) Returns a copy of thisOffsetDatewith the specified period in months subtracted.OffsetDateTime.minusMonths(long months, DateResolver dateResolver) Returns a copy of thisOffsetDateTimewith the specified period in months subtracted.LocalDate.minusYears(long years, DateResolver dateResolver) Returns a copy of thisLocalDatewith the specified period in years subtracted.LocalDateTime.minusYears(long years, DateResolver dateResolver) Returns a copy of thisLocalDateTimewith the specified period in years subtracted.OffsetDate.minusYears(long years, DateResolver dateResolver) Returns a copy of thisOffsetDatewith the specified period in years subtracted.OffsetDateTime.minusYears(long years, DateResolver dateResolver) Returns a copy of thisOffsetDateTimewith the specified period in years subtracted.LocalDate.plusMonths(long months, DateResolver dateResolver) Returns a copy of thisLocalDatewith the specified period in months added.LocalDateTime.plusMonths(long months, DateResolver dateResolver) Returns a copy of thisLocalDateTimewith the specified period in months added.OffsetDate.plusMonths(long months, DateResolver dateResolver) Returns a copy of thisOffsetDatewith the specified period in months added.OffsetDateTime.plusMonths(long months, DateResolver dateResolver) Returns a copy of thisOffsetDateTimewith the specified period in months added.LocalDate.plusYears(long years, DateResolver dateResolver) Returns a copy of thisLocalDatewith the specified period in years added.LocalDateTime.plusYears(long years, DateResolver dateResolver) Returns a copy of thisLocalDateTimewith the specified period in years added.OffsetDate.plusYears(long years, DateResolver dateResolver) Returns a copy of thisOffsetDatewith the specified period in years added.OffsetDateTime.plusYears(long years, DateResolver dateResolver) Returns a copy of thisOffsetDateTimewith the specified period in years added.private LocalDateLocalDate.resolveDate(DateResolver dateResolver, int year, MonthOfYear month, int day) Resolves the date, handling incorrectly implemented resolvers.LocalDate.with(MonthOfYear monthOfYear, DateResolver dateResolver) Returns a copy of thisLocalDatewith the month-of-year altered.LocalDateTime.with(MonthOfYear monthOfYear, DateResolver dateResolver) Returns a copy of thisLocalDateTimewith the month-of-year altered.OffsetDate.with(MonthOfYear monthOfYear, DateResolver dateResolver) Returns a copy of thisOffsetDatewith the month-of-year altered.OffsetDateTime.with(MonthOfYear monthOfYear, DateResolver dateResolver) Returns a copy of thisOffsetDateTimewith the month-of-year altered.LocalDate.withDayOfMonth(int dayOfMonth, DateResolver dateResolver) Returns a copy of thisLocalDatewith the day-of-month altered.LocalDateTime.withDayOfMonth(int dayOfMonth, DateResolver dateResolver) Returns a copy of thisLocalDateTimewith the day-of-month altered.OffsetDate.withDayOfMonth(int dayOfMonth, DateResolver dateResolver) Returns a copy of thisOffsetDatewith the day-of-month altered.OffsetDateTime.withDayOfMonth(int dayOfMonth, DateResolver dateResolver) Returns a copy of thisOffsetDateTimewith the day-of-month altered.LocalDate.withMonthOfYear(int monthOfYear, DateResolver dateResolver) Returns a copy of thisLocalDatewith the month-of-year altered.LocalDateTime.withMonthOfYear(int monthOfYear, DateResolver dateResolver) Returns a copy of thisLocalDateTimewith the month-of-year altered.OffsetDate.withMonthOfYear(int monthOfYear, DateResolver dateResolver) Returns a copy of thisOffsetDatewith the month-of-year altered.OffsetDateTime.withMonthOfYear(int monthOfYear, DateResolver dateResolver) Returns a copy of thisOffsetDateTimewith the month-of-year altered.LocalDate.withYear(int year, DateResolver dateResolver) Returns a copy of thisLocalDatewith the year altered.LocalDateTime.withYear(int year, DateResolver dateResolver) Returns a copy of thisLocalDateTimewith the year altered.OffsetDate.withYear(int year, DateResolver dateResolver) Returns a copy of thisOffsetDatewith the year altered.OffsetDateTime.withYear(int year, DateResolver dateResolver) Returns a copy of thisOffsetDateTimewith the year altered.