Interface OrdinalWeekdayElement
 All Superinterfaces:
AdjustableElement<Integer,PlainDate>
,ChronoElement<Integer>
,Comparator<ChronoDisplay>
,ZonalElement<Integer>
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.
 Author:
 Meno Hochschild

Method Summary
Modifier and TypeMethodDescriptiondefault ElementOperator<PlainDate>
Defines an operator which moves a date to the given ordinal weekday in month.setToFirst(Weekday dayOfWeek)
Defines an operator which moves a date to the first given weekday in month.setToFourth(Weekday dayOfWeek)
Defines an operator which moves a date to the fourth given weekday in month.Defines an operator which moves a date to the last given weekday in month.setToSecond(Weekday dayOfWeek)
Defines an operator which moves a date to the second given weekday in month.setToThird(Weekday dayOfWeek)
Defines an operator which moves a date to the third given weekday in month.Methods inherited from interface net.time4j.AdjustableElement
atCeiling, atCeiling, atFloor, atFloor, decremented, incremented, maximized, minimized, newValue
Methods inherited from interface net.time4j.engine.ChronoElement
compare, getDefaultMaximum, getDefaultMinimum, getDisplayName, getSymbol, getType, isDateElement, isLenient, isTimeElement, name
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Methods inherited from interface net.time4j.ZonalElement
at, atUTC, in, inStdTimezone, inTimezone

Method Details

setToFirst
Defines an operator which moves a date to the first given weekday in month.
 Parameters:
dayOfWeek
 first day of week in month Returns:
 operator directly applicable also on
PlainTimestamp

setToSecond
Defines an operator which moves a date to the second given weekday in month.
 Parameters:
dayOfWeek
 second day of week in month Returns:
 operator directly applicable also on
PlainTimestamp

setToThird
Defines an operator which moves a date to the third given weekday in month.
 Parameters:
dayOfWeek
 third day of week in month Returns:
 operator directly applicable also on
PlainTimestamp

setToFourth
Defines an operator which moves a date to the fourth given weekday in month.
 Parameters:
dayOfWeek
 fourth day of week in month Returns:
 operator directly applicable also on
PlainTimestamp

setToLast
Defines an operator which moves a date to the last given weekday in month.
 Parameters:
dayOfWeek
 last day of week in month Returns:
 operator directly applicable also on
PlainTimestamp

setTo
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. Parameters:
ordinal
 ordinal numberdayOfWeek
 last day of week in month Returns:
 operator directly applicable also on
PlainTimestamp
 Since:
 4.1
