Class HumanReadableDuration
java.lang.Object
com.palantir.conjure.java.api.config.service.HumanReadableDuration
- All Implemented Interfaces:
Comparable<HumanReadableDuration>, TemporalAmount
public final class HumanReadableDuration
extends Object
implements Comparable<HumanReadableDuration>, TemporalAmount
-
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(HumanReadableDuration other) static HumanReadableDurationdays(long count) booleanlongget(TemporalUnit temporalUnit) longgetUnit()getUnits()inthashCode()static HumanReadableDurationhours(long count) static HumanReadableDurationmicroseconds(long count) static HumanReadableDurationmilliseconds(long count) static HumanReadableDurationminutes(long count) static HumanReadableDurationnanoseconds(long count) static HumanReadableDurationseconds(long count) subtractFrom(Temporal temporal) longtoDays()longtoHours()longlonglonglonglongtoString()static HumanReadableDuration
-
Method Details
-
nanoseconds
-
microseconds
-
milliseconds
-
seconds
-
minutes
-
hours
-
days
-
valueOf
-
getQuantity
public long getQuantity() -
getUnit
-
toNanoseconds
public long toNanoseconds() -
toMicroseconds
public long toMicroseconds() -
toMilliseconds
public long toMilliseconds() -
toSeconds
public long toSeconds() -
toMinutes
public long toMinutes() -
toHours
public long toHours() -
toDays
public long toDays() -
toJavaDuration
-
equals
-
hashCode
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<HumanReadableDuration>
-
get
- Specified by:
getin interfaceTemporalAmount
-
getUnits
- Specified by:
getUnitsin interfaceTemporalAmount
-
addTo
- Specified by:
addToin interfaceTemporalAmount
-
subtractFrom
- Specified by:
subtractFromin interfaceTemporalAmount
-