Interface ZonalElement<V>
- Type Parameters:
V
- generic type of element values
- All Superinterfaces:
ChronoElement<V>
,Comparator<ChronoDisplay>
- All Known Subinterfaces:
AdjustableElement<V,T>
,CalendarDateElement
,NavigableElement<V>
,OrdinalWeekdayElement
,ProportionalElement<V,T>
,WallTimeElement
Extends a chronological element by some zonal queries.
- Since:
- 2.0
- Author:
- Meno Hochschild
-
Method Summary
Modifier and TypeMethodDescriptionat(ZonalOffset offset)
Creates a function which can query aMoment
at the given timezone offset.atUTC()
Equivalent toat(ZonalOffset.UTC)
.Creates a function which can query aMoment
in the given timezone.Creates a function which can query aMoment
in the system timezone.inTimezone(TZID tzid)
Creates a function which can query aMoment
in the given timezone.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
-
Method Details
-
inStdTimezone
ChronoFunction<Moment,V> inStdTimezone()Creates a function which can query a
Moment
in the system timezone.Note: Usually the function converts the given
Moment
to aPlainTimestamp
and then queries this local timestamp.- Returns:
- function with the default system timezone reference,
applicable on instances of
Moment
- Since:
- 2.0
-
inTimezone
Creates a function which can query a
Moment
in the given timezone.Note: Usually the function converts the given
Moment
to aPlainTimestamp
and then queries this zonal timestamp.- Parameters:
tzid
- timezone id- Returns:
- function applicable on instances of
Moment
- Throws:
IllegalArgumentException
- if given timezone cannot be loaded- Since:
- 2.0
-
in
Creates a function which can query a
Moment
in the given timezone.Note: Usually the function converts the given
Moment
to aPlainTimestamp
and then queries this zonal timestamp.- Parameters:
tz
- timezone- Returns:
- function applicable on instances of
Moment
- Since:
- 2.0
-
atUTC
ChronoFunction<Moment,V> atUTC()Equivalent to
at(ZonalOffset.UTC)
.- Returns:
- function applicable on instances of
Moment
- Since:
- 2.0
- See Also:
at(ZonalOffset)
-
at
Creates a function which can query a
Moment
at the given timezone offset.Note: Usually the function converts the given
Moment
to aPlainTimestamp
and then queries this zonal timestamp.- Parameters:
offset
- timezone offset- Returns:
- function applicable on instances of
Moment
- Since:
- 2.0
-