Class ListedTime
- java.lang.Object
-
- no.digipost.api.client.representations.ListedTime
-
- All Implemented Interfaces:
Temporal
,TemporalAccessor
public final class ListedTime extends Object implements Temporal
-
-
Field Summary
Fields Modifier and Type Field Description ZonedDateTime
time
-
Constructor Summary
Constructors Constructor Description ListedTime()
ListedTime(ZonedDateTime atTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
long
getLong(TemporalField field)
int
hashCode()
boolean
isSupported(TemporalField field)
boolean
isSupported(TemporalUnit unit)
ListedTime
plus(long amountToAdd, TemporalUnit unit)
long
until(Temporal endExclusive, TemporalUnit unit)
ListedTime
with(TemporalField field, long newValue)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.time.temporal.TemporalAccessor
get, query, range
-
-
-
-
Field Detail
-
time
public final ZonedDateTime time
-
-
Constructor Detail
-
ListedTime
public ListedTime()
-
ListedTime
public ListedTime(ZonedDateTime atTime)
-
-
Method Detail
-
isSupported
public boolean isSupported(TemporalField field)
- Specified by:
isSupported
in interfaceTemporalAccessor
-
getLong
public long getLong(TemporalField field)
- Specified by:
getLong
in interfaceTemporalAccessor
-
isSupported
public boolean isSupported(TemporalUnit unit)
- Specified by:
isSupported
in interfaceTemporal
-
with
public ListedTime with(TemporalField field, long newValue)
-
plus
public ListedTime plus(long amountToAdd, TemporalUnit unit)
-
until
public long until(Temporal endExclusive, TemporalUnit unit)
-
-