public interface OrdinalWeekdayElement extends AdjustableElement<Integer,PlainDate>
The element for the ordinal weekday in month.
An instance can be obtained using the expression
PlainDate.WEEKDAY_IN_MONTH
. This interface inherits from
AdjustableElement
and offers additional operator for setting
the weekday in month.
Modifier and Type  Method and Description 

default ElementOperator<PlainDate> 
setTo(int ordinal,
Weekday dayOfWeek)
Defines an operator which moves a date to the given ordinal weekday
in month.

ElementOperator<PlainDate> 
setToFirst(Weekday dayOfWeek)
Defines an operator which moves a date to the first given weekday
in month.

ElementOperator<PlainDate> 
setToFourth(Weekday dayOfWeek)
Defines an operator which moves a date to the fourth given weekday
in month.

ElementOperator<PlainDate> 
setToLast(Weekday dayOfWeek)
Defines an operator which moves a date to the last given weekday
in month.

ElementOperator<PlainDate> 
setToSecond(Weekday dayOfWeek)
Defines an operator which moves a date to the second given weekday
in month.

ElementOperator<PlainDate> 
setToThird(Weekday dayOfWeek)
Defines an operator which moves a date to the third given weekday
in month.

atCeiling, atCeiling, atFloor, atFloor, decremented, incremented, maximized, minimized, newValue
at, atUTC, in, inStdTimezone, inTimezone
compare, getDefaultMaximum, getDefaultMinimum, getDisplayName, getSymbol, getType, isDateElement, isLenient, isTimeElement, name
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
ElementOperator<PlainDate> setToFirst(Weekday dayOfWeek)
Defines an operator which moves a date to the first given weekday in month.
dayOfWeek
 first day of week in monthPlainTimestamp
ElementOperator<PlainDate> setToSecond(Weekday dayOfWeek)
Defines an operator which moves a date to the second given weekday in month.
dayOfWeek
 second day of week in monthPlainTimestamp
ElementOperator<PlainDate> setToThird(Weekday dayOfWeek)
Defines an operator which moves a date to the third given weekday in month.
dayOfWeek
 third day of week in monthPlainTimestamp
ElementOperator<PlainDate> setToFourth(Weekday dayOfWeek)
Defines an operator which moves a date to the fourth given weekday in month.
dayOfWeek
 fourth day of week in monthPlainTimestamp
ElementOperator<PlainDate> setToLast(Weekday dayOfWeek)
Defines an operator which moves a date to the last given weekday in month.
dayOfWeek
 last day of week in monthPlainTimestamp
default ElementOperator<PlainDate> 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. Note that only the values 14 can give the guarantee that the current
month will not be changed.
ordinal
 ordinal numberdayOfWeek
 last day of week in monthPlainTimestamp
Copyright © 2014–2020. All rights reserved.