Package javax.time.calendar
Class DateResolvers.PartLenient
java.lang.Object
javax.time.calendar.DateResolvers.PartLenient
- All Implemented Interfaces:
Serializable
,DateResolver
- Enclosing class:
DateResolvers
Class implementing partLenient resolver.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final DateResolver
The singleton instance.private static final long
A serialization identifier for this class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Object
resolveDate
(int year, MonthOfYear monthOfYear, int dayOfMonth) Resolves the combination of year, month and day into a date.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDA serialization identifier for this class.- See Also:
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
PartLenient
private PartLenient()
-
-
Method Details
-
readResolve
-
resolveDate
Resolves the combination of year, month and day into a date.The purpose of resolution is to avoid invalid dates. Each of the three fields are individually valid. However, the day-of-month may not be valid for the associated month and year.
- Specified by:
resolveDate
in interfaceDateResolver
- Parameters:
year
- the year that was input, from MIN_YEAR to MAX_YEARmonthOfYear
- the month-of-year, not nulldayOfMonth
- the proposed day-of-month, from 1 to 31- Returns:
- the resolved date, never null
-