public static class Configuration.Duration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Configuration.Duration |
ETERNAL |
static Configuration.Duration |
ZERO |
Constructor and Description |
---|
Duration(java.util.concurrent.TimeUnit timeUnit,
long durationAmount) |
Modifier and Type | Method and Description |
---|---|
long |
getAdjustedTime(long time) |
long |
getDurationAmount() |
java.util.concurrent.TimeUnit |
getTimeUnit() |
boolean |
isEternal() |
java.lang.String |
toString() |
public static final Configuration.Duration ETERNAL
public static final Configuration.Duration ZERO
public Duration(java.util.concurrent.TimeUnit timeUnit, long durationAmount)
public java.util.concurrent.TimeUnit getTimeUnit()
public long getDurationAmount()
public boolean isEternal()
public long getAdjustedTime(long time)
public java.lang.String toString()
toString
in class java.lang.Object