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, atFloor, decremented, incremented, maximized, minimized, newValueat, atUTC, in, inStdTimezone, inTimezonecompare, getDefaultMaximum, getDefaultMinimum, getSymbol, getType, isDateElement, isLenient, isTimeElement, namecomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongElementOperator<PlainDate> setToFirst(Weekday dayOfWeek)
Defines an operator which moves a date to the first given weekday in month.
dayOfWeek - first day of week in monthPlainTimestampElementOperator<PlainDate> setToSecond(Weekday dayOfWeek)
Defines an operator which moves a date to the second given weekday in month.
dayOfWeek - second day of week in monthPlainTimestampElementOperator<PlainDate> setToThird(Weekday dayOfWeek)
Defines an operator which moves a date to the third given weekday in month.
dayOfWeek - third day of week in monthPlainTimestampElementOperator<PlainDate> setToFourth(Weekday dayOfWeek)
Defines an operator which moves a date to the fourth given weekday in month.
dayOfWeek - fourth day of week in monthPlainTimestampElementOperator<PlainDate> setToLast(Weekday dayOfWeek)
Defines an operator which moves a date to the last given weekday in month.
dayOfWeek - last day of week in monthPlainTimestampdefault 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 1-4 can give the guarantee that the current
month will not be changed.
ordinal - ordinal numberdayOfWeek - last day of week in monthPlainTimestampCopyright © 2014–2015. All rights reserved.