| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| Modifier and Type | Method and Description |
|---|---|
ElementOperator<T> |
AdjustableElement.atCeiling()
Rounds up an entity by setting all child elements to maximum.
|
ElementOperator<T> |
AdjustableElement.atFloor()
Rounds down an entity by setting all child elements to minimum.
|
ElementOperator<T> |
AdjustableElement.decremented()
Adjusts any local entity such that this element gets the previous
value.
|
ElementOperator<PlainDate> |
CalendarDateElement.firstDayOfNextMonth()
Adjusts a calendar date to the first day of next month.
|
ElementOperator<PlainDate> |
CalendarDateElement.firstDayOfNextQuarter()
Adjusts a calendar date to the first day of next quarter year.
|
ElementOperator<PlainDate> |
CalendarDateElement.firstDayOfNextYear()
Adjusts a calendar date to the first day of next year.
|
ElementOperator<T> |
AdjustableElement.incremented()
Adjusts any local entity such that this element gets the next
value.
|
ElementOperator<PlainDate> |
CalendarDateElement.lastDayOfPreviousMonth()
Adjusts a calendar date to the last day of previous month.
|
ElementOperator<PlainDate> |
CalendarDateElement.lastDayOfPreviousQuarter()
Adjusts a calendar date to the last day of previous quarter year.
|
ElementOperator<PlainDate> |
CalendarDateElement.lastDayOfPreviousYear()
Adjusts a calendar date to the last day of previous year.
|
ElementOperator<T> |
AdjustableElement.maximized()
Sets any local entity to the maximum of this element.
|
ElementOperator<T> |
AdjustableElement.minimized()
Sets any local entity to the minimum of this element.
|
ElementOperator<T> |
AdjustableElement.newValue(V value)
Sets any local entity to given new value of this element.
|
ElementOperator<PlainTime> |
WallTimeElement.roundedToFullHour()
Performs rounding to full hour in half rounding mode.
|
ElementOperator<PlainTime> |
WallTimeElement.roundedToFullMinute()
Performs rounding to full minute in half rounding mode.
|
ElementOperator<T> |
ProportionalElement.setLenient(V value)
Adjusts any kind of entity such that this element will be set to
the given value in lenient mode.
|
default ElementOperator<PlainDate> |
OrdinalWeekdayElement.setTo(int ordinal,
Weekday dayOfWeek)
Defines an operator which moves a date to the given ordinal weekday
in month.
|
ElementOperator<PlainDate> |
OrdinalWeekdayElement.setToFirst(Weekday dayOfWeek)
Defines an operator which moves a date to the first given weekday
in month.
|
ElementOperator<PlainDate> |
OrdinalWeekdayElement.setToFourth(Weekday dayOfWeek)
Defines an operator which moves a date to the fourth given weekday
in month.
|
ElementOperator<PlainDate> |
OrdinalWeekdayElement.setToLast(Weekday dayOfWeek)
Defines an operator which moves a date to the last given weekday
in month.
|
ElementOperator<?> |
WallTimeElement.setToNext(PlainTime value)
Moves a timestamp to the next given wall time and change the day
if necessary.
|
ElementOperator<PlainDate> |
NavigableElement.setToNext(V value)
Moves a time point to the first given element value which is after
the current element value.
|
ElementOperator<PlainTime> |
WallTimeElement.setToNextFullHour()
Adjusts to next full hour.
|
ElementOperator<PlainTime> |
WallTimeElement.setToNextFullMinute()
Adjusts to next full minute.
|
ElementOperator<?> |
WallTimeElement.setToNextOrSame(PlainTime value)
Moves a timestamp to the next or same given wall time and change
the day if necessary.
|
ElementOperator<PlainDate> |
NavigableElement.setToNextOrSame(V value)
Moves a time point to the first given element value which is after
or equal to the current element value.
|
ElementOperator<?> |
WallTimeElement.setToPrevious(PlainTime value)
Moves a timestamp to the previous given wall time and change the day
backwards if necessary.
|
ElementOperator<PlainDate> |
NavigableElement.setToPrevious(V value)
Moves a time point to the first given element value which is before
the current element value.
|
ElementOperator<?> |
WallTimeElement.setToPreviousOrSame(PlainTime value)
Moves a timestamp to the previous or same given wall time and
change the day backwards if necessary.
|
ElementOperator<PlainDate> |
NavigableElement.setToPreviousOrSame(V value)
Moves a time point to the first given element value which is before
or equal to the current element value.
|
ElementOperator<PlainDate> |
OrdinalWeekdayElement.setToSecond(Weekday dayOfWeek)
Defines an operator which moves a date to the second given weekday
in month.
|
ElementOperator<PlainDate> |
OrdinalWeekdayElement.setToThird(Weekday dayOfWeek)
Defines an operator which moves a date to the third given weekday
in month.
|
| Modifier and Type | Method and Description |
|---|---|
PlainTimestamp |
PlainTimestamp.with(ElementOperator<?> operator)
Adjusts this timestamp by given operator.
|
Copyright © 2014–2015. All rights reserved.