T - generic target type this operator is applied topublic abstract class ElementOperator<T> extends Object implements ChronoOperator<T>
Defines any manipulation of date or wall time objects following the strategy design pattern.
| Modifier and Type | Method and Description |
|---|---|
ChronoOperator<Moment> |
at(ZonalOffset offset)
Creates an operator which can adjust a
Moment at the
given timezone offset. |
ChronoOperator<Moment> |
atUTC()
Equivalent to
at(ZonalOffset.UTC). |
ChronoOperator<Moment> |
in(Timezone tz)
Creates an operator which can adjust a
Moment in the
given timezone. |
ChronoOperator<Moment> |
inStdTimezone()
Creates an operator which can adjust a
Moment in the
system timezone. |
ChronoOperator<Moment> |
inTimezone(TZID tzid)
Creates an operator which can adjust a
Moment in the
given timezone. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyidentitypublic ChronoOperator<Moment> inStdTimezone()
Creates an operator which can adjust a Moment in the
system timezone.
Note: Usually the operator converts the given Moment to
a PlainTimestamp then processes this local timestamp and
finally converts the result back to a new Moment. A special
case are incrementing and decrementing of (sub-)second elements which
eventually operate directly on the UTC timeline.
Momentpublic final ChronoOperator<Moment> inTimezone(TZID tzid)
Creates an operator which can adjust a Moment in the
given timezone.
Note: Usually the operator converts the given Moment to
a PlainTimestamp then processes this local timestamp and
finally converts the result back to a new Moment. A special
case are incrementing and decrementing of (sub-)second elements which
eventually operate directly on the UTC timeline.
tzid - timezone idMomentIllegalArgumentException - if given timezone cannot be loadedpublic final ChronoOperator<Moment> in(Timezone tz)
Creates an operator which can adjust a Moment in the
given timezone.
Note: Usually the operator converts the given Moment to
a PlainTimestamp then processes this local timestamp and
finally converts the result back to a new Moment. A special
case are incrementing and decrementing of (sub-)second elements which
eventually operate directly on the UTC timeline.
tz - timezoneMomentpublic final ChronoOperator<Moment> atUTC()
Equivalent to at(ZonalOffset.UTC).
Momentat(ZonalOffset)public final ChronoOperator<Moment> at(ZonalOffset offset)
Creates an operator which can adjust a Moment at the
given timezone offset.
Note: Usually the operator converts the given Moment to
a PlainTimestamp then processes this local timestamp and
finally converts the result back to a new Moment. A special
case are incrementing and decrementing of (sub-)second elements which
eventually operate directly on the UTC timeline.
offset - timezone offsetMomentCopyright © 2014–2015. All rights reserved.