public final class CypherDuration extends CypherValue implements java.time.temporal.TemporalAmount
Modifier and Type | Field and Description |
---|---|
static CypherDuration |
MAX_VALUE |
static CypherDuration |
MIN_VALUE |
static CypherDuration |
ZERO |
Modifier and Type | Method and Description |
---|---|
java.time.temporal.Temporal |
addTo(java.time.temporal.Temporal temporal) |
java.time.temporal.TemporalAmount |
asObjectCopy() |
static CypherDuration |
duration(java.time.Duration value) |
static CypherDuration |
duration(long months,
long days,
long seconds,
long nanos) |
static CypherDuration |
duration(java.time.Period value) |
long |
get(java.time.temporal.TemporalUnit unit) |
java.util.List<java.time.temporal.TemporalUnit> |
getUnits() |
java.time.temporal.Temporal |
subtractFrom(java.time.temporal.Temporal temporal) |
getMemorySize
public static final CypherDuration MIN_VALUE
public static final CypherDuration MAX_VALUE
public static final CypherDuration ZERO
public static CypherDuration duration(java.time.Duration value)
public static CypherDuration duration(java.time.Period value)
public static CypherDuration duration(long months, long days, long seconds, long nanos)
public java.time.temporal.TemporalAmount asObjectCopy()
asObjectCopy
in class CypherValue
public long get(java.time.temporal.TemporalUnit unit)
get
in interface java.time.temporal.TemporalAmount
public java.util.List<java.time.temporal.TemporalUnit> getUnits()
getUnits
in interface java.time.temporal.TemporalAmount
public java.time.temporal.Temporal addTo(java.time.temporal.Temporal temporal)
addTo
in interface java.time.temporal.TemporalAmount
public java.time.temporal.Temporal subtractFrom(java.time.temporal.Temporal temporal)
subtractFrom
in interface java.time.temporal.TemporalAmount