| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| net.time4j.engine |
Defines the common generic schemes and interfaces of chronological
systems.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ElementOperator<T>
Defines any manipulation of date or wall time objects following the
strategy design pattern.
|
| Modifier and Type | Method and Description |
|---|---|
ChronoOperator<Moment> |
ElementOperator.at(ZonalOffset offset)
Creates an operator which can adjust a
Moment at the
given timezone offset. |
ChronoOperator<Moment> |
ElementOperator.atUTC()
Equivalent to
at(ZonalOffset.UTC). |
ChronoOperator<Moment> |
ElementOperator.in(Timezone tz)
Creates an operator which can adjust a
Moment in the
given timezone. |
ChronoOperator<Moment> |
ElementOperator.inStdTimezone()
Creates an operator which can adjust a
Moment in the
system timezone. |
ChronoOperator<Moment> |
ElementOperator.inTimezone(TZID tzid)
Creates an operator which can adjust a
Moment in the
given timezone. |
ChronoOperator<T> |
ProportionalElement.roundedDown(int stepwidth)
Rounds this chronological element down and makes its numerical
value an integral multiple of given step width if possible.
|
ChronoOperator<T> |
ProportionalElement.roundedHalf(int stepwidth)
Rounds this chronological element up or down and makes its
numerical value an integral multiple of given step width if
possible.
|
ChronoOperator<T> |
ProportionalElement.roundedUp(int stepwidth)
Rounds this chronological element up and makes its numerical
value an integral multiple of given step width if possible.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends ChronoEntity<T>> |
AdvancedElement.atCeiling(Class<T> context)
Yields an operator which rounds any entity up so that the child
elements will be set to the maximum.
|
<T extends ChronoEntity<T>> |
AdvancedElement.atFloor(Class<T> context)
Yields an operator which rounds any entity down so that the child
elements will be set to the minimum.
|
<T extends ChronoEntity<T>> |
AdvancedElement.decremented(Class<T> context)
Yields a new operator which can set any entity such that its
actual element value gets the decremented value.
|
<T extends ChronoEntity<T>> |
AdvancedElement.incremented(Class<T> context)
Yields a new operator which can set any entity such that its
actual element value gets the incremented value.
|
<T extends ChronoEntity<T>> |
AdvancedElement.maximized(Class<T> context)
Yields a new operator which can set any entity to its maximum
element value.
|
<T extends ChronoEntity<T>> |
AdvancedElement.minimized(Class<T> context)
Yields a new operator which can set any entity to its minimum
element value.
|
<T extends ChronoEntity<T>> |
AdvancedElement.newValue(V value,
Class<T> context)
Yields an operator which sets any entity such that its actual
element value will be set in normal mode to given value.
|
<T extends ChronoEntity<T>> |
AdvancedElement.setLenient(V value,
Class<T> context)
Yields an operator which sets any entity such that its actual
element value will be set in lenient mode to given value.
|
| Modifier and Type | Method and Description |
|---|---|
T |
ChronoEntity.with(ChronoOperator<T> operator)
Creates a copy of this instance which is adjusted by given
ChronoOperator using a strategy pattern approach. |
Copyright © 2014. All rights reserved.