Package javax.time.calendar
Class DateAdjusters.RelativeDayOfWeek
java.lang.Object
javax.time.calendar.DateAdjusters.RelativeDayOfWeek
- All Implemented Interfaces:
Serializable
,DateAdjuster
- Enclosing class:
DateAdjusters
private static final class DateAdjusters.RelativeDayOfWeek
extends Object
implements DateAdjuster, Serializable
Implementation of next, previous or current day-of-week.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DayOfWeek
The day-of-week to find.private final int
Whether the current date is a valid answer.private static final long
A serialization identifier for this class. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDA serialization identifier for this class.- See Also:
-
relative
private final int relativeWhether the current date is a valid answer. -
dow
The day-of-week to find.
-
-
Constructor Details
-
RelativeDayOfWeek
-
-
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()
-