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 ZonedDateTimetime
-
Constructor Summary
Constructors Constructor Description ListedTime()ListedTime(ZonedDateTime atTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)longgetLong(TemporalField field)inthashCode()booleanisSupported(TemporalField field)booleanisSupported(TemporalUnit unit)ListedTimeplus(long amountToAdd, TemporalUnit unit)longuntil(Temporal endExclusive, TemporalUnit unit)ListedTimewith(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:
isSupportedin interfaceTemporalAccessor
-
getLong
public long getLong(TemporalField field)
- Specified by:
getLongin interfaceTemporalAccessor
-
isSupported
public boolean isSupported(TemporalUnit unit)
- Specified by:
isSupportedin 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)
-
-