Package net.time4j.engine
Interface ThreetenAdapter
- All Superinterfaces:
TemporalAccessor
- All Known Implementing Classes:
AnnualDate
,CalendarMonth
,CalendarYear
,Moment
,Month
,PlainDate
,PlainTime
,PlainTimestamp
,Weekday
,ZonalDateTime
Defines the implementing chronological entity as TemporalAccessor
.
- Since:
- 4.0
- Author:
- Meno Hochschild
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
get(TemporalField field)
default long
getLong(TemporalField field)
default boolean
isSupported(TemporalField field)
default <R> R
query(TemporalQuery<R> query)
default ValueRange
range(TemporalField field)
Converts this object to aTemporalAccessor
.
-
Method Details
-
toTemporalAccessor
TemporalAccessor toTemporalAccessor()Converts this object to a
TemporalAccessor
.Any implementation is required to return a new object with a different concrete type, not this instance.
- Returns:
- converted Threeten-object (always as new object)
- Since:
- 4.0
-
isSupported
- Specified by:
isSupported
in interfaceTemporalAccessor
-
range
- Specified by:
range
in interfaceTemporalAccessor
-
get
- Specified by:
get
in interfaceTemporalAccessor
-
getLong
- Specified by:
getLong
in interfaceTemporalAccessor
-
query
- Specified by:
query
in interfaceTemporalAccessor
-