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 class
Class implementing nextValid resolver.private static class
Class implementing partLenient resolver.private static class
Class implementing previousValid resolver.private static class
Class implementing strict resolver.Fields in javax.time.calendar declared as DateResolverModifier and TypeFieldDescriptionprivate final DateResolver
CalendricalContext.dateResolver
Whether to use a date resolver for resolving dates.private static final DateResolver
DateResolvers.NextValid.INSTANCE
The singleton instance.private static final DateResolver
DateResolvers.PartLenient.INSTANCE
The singleton instance.private static final DateResolver
DateResolvers.PreviousValid.INSTANCE
The singleton instance.private static final DateResolver
DateResolvers.Strict.INSTANCE
The singleton instance.Methods in javax.time.calendar that return DateResolverModifier and TypeMethodDescriptionCalendricalContext.getDateResolver()
Gets the date resolver to use.static DateResolver
DateResolvers.nextValid()
Returns the next valid day resolver, which adjusts the date to be valid by moving to the first of the next month.static DateResolver
DateResolvers.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 DateResolver
DateResolvers.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 DateResolver
DateResolvers.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 thisLocalDate
with the specified period in months subtracted.LocalDateTime.minusMonths
(long months, DateResolver dateResolver) Returns a copy of thisLocalDateTime
with the specified period in months subtracted.OffsetDate.minusMonths
(long months, DateResolver dateResolver) Returns a copy of thisOffsetDate
with the specified period in months subtracted.OffsetDateTime.minusMonths
(long months, DateResolver dateResolver) Returns a copy of thisOffsetDateTime
with the specified period in months subtracted.LocalDate.minusYears
(long years, DateResolver dateResolver) Returns a copy of thisLocalDate
with the specified period in years subtracted.LocalDateTime.minusYears
(long years, DateResolver dateResolver) Returns a copy of thisLocalDateTime
with the specified period in years subtracted.OffsetDate.minusYears
(long years, DateResolver dateResolver) Returns a copy of thisOffsetDate
with the specified period in years subtracted.OffsetDateTime.minusYears
(long years, DateResolver dateResolver) Returns a copy of thisOffsetDateTime
with the specified period in years subtracted.LocalDate.plusMonths
(long months, DateResolver dateResolver) Returns a copy of thisLocalDate
with the specified period in months added.LocalDateTime.plusMonths
(long months, DateResolver dateResolver) Returns a copy of thisLocalDateTime
with the specified period in months added.OffsetDate.plusMonths
(long months, DateResolver dateResolver) Returns a copy of thisOffsetDate
with the specified period in months added.OffsetDateTime.plusMonths
(long months, DateResolver dateResolver) Returns a copy of thisOffsetDateTime
with the specified period in months added.LocalDate.plusYears
(long years, DateResolver dateResolver) Returns a copy of thisLocalDate
with the specified period in years added.LocalDateTime.plusYears
(long years, DateResolver dateResolver) Returns a copy of thisLocalDateTime
with the specified period in years added.OffsetDate.plusYears
(long years, DateResolver dateResolver) Returns a copy of thisOffsetDate
with the specified period in years added.OffsetDateTime.plusYears
(long years, DateResolver dateResolver) Returns a copy of thisOffsetDateTime
with the specified period in years added.private LocalDate
LocalDate.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 thisLocalDate
with the month-of-year altered.LocalDateTime.with
(MonthOfYear monthOfYear, DateResolver dateResolver) Returns a copy of thisLocalDateTime
with the month-of-year altered.OffsetDate.with
(MonthOfYear monthOfYear, DateResolver dateResolver) Returns a copy of thisOffsetDate
with the month-of-year altered.OffsetDateTime.with
(MonthOfYear monthOfYear, DateResolver dateResolver) Returns a copy of thisOffsetDateTime
with the month-of-year altered.LocalDate.withDayOfMonth
(int dayOfMonth, DateResolver dateResolver) Returns a copy of thisLocalDate
with the day-of-month altered.LocalDateTime.withDayOfMonth
(int dayOfMonth, DateResolver dateResolver) Returns a copy of thisLocalDateTime
with the day-of-month altered.OffsetDate.withDayOfMonth
(int dayOfMonth, DateResolver dateResolver) Returns a copy of thisOffsetDate
with the day-of-month altered.OffsetDateTime.withDayOfMonth
(int dayOfMonth, DateResolver dateResolver) Returns a copy of thisOffsetDateTime
with the day-of-month altered.LocalDate.withMonthOfYear
(int monthOfYear, DateResolver dateResolver) Returns a copy of thisLocalDate
with the month-of-year altered.LocalDateTime.withMonthOfYear
(int monthOfYear, DateResolver dateResolver) Returns a copy of thisLocalDateTime
with the month-of-year altered.OffsetDate.withMonthOfYear
(int monthOfYear, DateResolver dateResolver) Returns a copy of thisOffsetDate
with the month-of-year altered.OffsetDateTime.withMonthOfYear
(int monthOfYear, DateResolver dateResolver) Returns a copy of thisOffsetDateTime
with the month-of-year altered.LocalDate.withYear
(int year, DateResolver dateResolver) Returns a copy of thisLocalDate
with the year altered.LocalDateTime.withYear
(int year, DateResolver dateResolver) Returns a copy of thisLocalDateTime
with the year altered.OffsetDate.withYear
(int year, DateResolver dateResolver) Returns a copy of thisOffsetDate
with the year altered.OffsetDateTime.withYear
(int year, DateResolver dateResolver) Returns a copy of thisOffsetDateTime
with the year altered.