T - generic type of calendar chronologypublic interface OrdinalWeekdayElement<T> extends StdCalendarElement<Integer,T>
The element for the ordinal weekday in month.
This interface offers additional operators for setting the weekday in month.
| Modifier and Type | Method and Description |
|---|---|
ChronoOperator<T> |
setTo(int ordinal,
Weekday dayOfWeek)
Defines an operator which moves a date to the given ordinal weekday in month.
|
ChronoOperator<T> |
setToFirst(Weekday dayOfWeek)
Defines an operator which moves a date to the first given weekday in month.
|
ChronoOperator<T> |
setToLast(Weekday dayOfWeek)
Defines an operator which moves a date to the last given weekday in month.
|
atCeiling, atFloor, decremented, incremented, maximized, minimizedcompare, getDefaultMaximum, getDefaultMinimum, getDisplayName, getSymbol, getType, isDateElement, isLenient, isTimeElement, namecomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongChronoOperator<T> setToFirst(Weekday dayOfWeek)
Defines an operator which moves a date to the first given weekday in month.
Equivalent to setTo(1, dayOfWeek).
dayOfWeek - first day of week in monthChronoOperator<T> setToLast(Weekday dayOfWeek)
Defines an operator which moves a date to the last given weekday in month.
Equivalent to setTo(Integer.MAX_VALUE, dayOfWeek).
The new day will never be in next month.
dayOfWeek - last day of week in monthChronoOperator<T> setTo(int ordinal, Weekday dayOfWeek)
Defines an operator which moves a date to the given ordinal weekday in month.
If given ordinal number is Integer.MAX_VALUE then the last weekday in month
will be determined. This operator behaves in a lenient way, any overflow of the ordinal
number will be transferred to another month. Note that this behaviour will also happen
if the current month might be shorter than a full calendar week as exotic edge case.
ordinal - ordinal numberdayOfWeek - last day of week in monthCopyright © 2014–2021. All rights reserved.