Package javax.time.calendar
Class DateAdjusters.DayOfWeekInMonth
java.lang.Object
javax.time.calendar.DateAdjusters.DayOfWeekInMonth
- All Implemented Interfaces:
Serializable
,DateAdjuster
- Enclosing class:
- DateAdjusters
private static final class DateAdjusters.DayOfWeekInMonth
extends Object
implements DateAdjuster, Serializable
Class implementing day-of-week in month adjuster.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DayOfWeek
The day-of-week.private final int
The ordinal, from 1 to 5.private static final long
A serialization identifier for this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
DayOfWeekInMonth
(int ordinal, DayOfWeek dayOfWeek) Constructor. -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDA serialization identifier for this class.- See Also:
-
ordinal
private final int ordinalThe ordinal, from 1 to 5. -
dayOfWeek
The day-of-week.
-
-
Constructor Details
-
DayOfWeekInMonth
Constructor.- Parameters:
ordinal
- ordinal, from 1 to 5dayOfWeek
- the day-of-week, not null
-
-
Method Details
-
adjustDate
Adjusts the input date returning the adjusted date.This is a strategy pattern that allows a range of adjustments to be made to a date.
- Specified by:
adjustDate
in interfaceDateAdjuster
- Parameters:
date
- the date to adjust, not null- Returns:
- the adjusted date, never null
-
equals
-
hashCode
public int hashCode()
-