public final class TimeValue extends java.lang.Object implements java.lang.Comparable<TimeValue>, java.io.Serializable
Modifier and Type | Method and Description |
---|---|
int |
compareTo(long duration,
java.util.concurrent.TimeUnit unit) |
int |
compareTo(TimeValue value) |
TimeValue |
convert(java.util.concurrent.TimeUnit unit) |
long |
duration() |
TimeValue |
duration(long duration) |
long |
durationToDays() |
long |
durationToHours() |
long |
durationToMicros() |
long |
durationToMillis() |
long |
durationToMinutes() |
long |
durationToNanos() |
long |
durationToSeconds() |
boolean |
equals(java.lang.Object o) |
static TimeValue |
fromString(java.lang.String value) |
int |
hashCode() |
static TimeValue |
of(long duration,
java.util.concurrent.TimeUnit unit) |
void |
sleep() |
void |
timedJoin(java.lang.Thread thread) |
void |
timedWait(java.lang.Object o) |
TimeValue |
toDays() |
TimeValue |
toHours() |
TimeValue |
toMicros() |
TimeValue |
toMillis() |
TimeValue |
toMinutes() |
TimeValue |
toNanos() |
TimeValue |
toSeconds() |
java.lang.String |
toString() |
static java.lang.String |
toString(long duration,
java.util.concurrent.TimeUnit unit) |
static java.lang.String |
toString(java.lang.Number duration,
java.util.concurrent.TimeUnit unit) |
java.util.concurrent.TimeUnit |
unit() |
TimeValue |
unit(java.util.concurrent.TimeUnit unit) |
public static TimeValue of(long duration, java.util.concurrent.TimeUnit unit)
public static TimeValue fromString(java.lang.String value)
public static java.lang.String toString(long duration, java.util.concurrent.TimeUnit unit)
public static java.lang.String toString(java.lang.Number duration, java.util.concurrent.TimeUnit unit)
public int compareTo(long duration, java.util.concurrent.TimeUnit unit)
public int compareTo(TimeValue value)
compareTo
in interface java.lang.Comparable<TimeValue>
public boolean equals(@Nullable java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public TimeValue convert(java.util.concurrent.TimeUnit unit)
public void timedWait(java.lang.Object o) throws java.lang.InterruptedException
java.lang.InterruptedException
public void timedJoin(java.lang.Thread thread) throws java.lang.InterruptedException
java.lang.InterruptedException
public void sleep() throws java.lang.InterruptedException
java.lang.InterruptedException
public long duration()
public TimeValue duration(long duration)
public long durationToNanos()
public long durationToMicros()
public long durationToMillis()
public long durationToSeconds()
public long durationToMinutes()
public long durationToHours()
public long durationToDays()
public java.util.concurrent.TimeUnit unit()
public TimeValue unit(java.util.concurrent.TimeUnit unit)
public java.lang.String toString()
toString
in class java.lang.Object
public TimeValue toNanos()
public TimeValue toMicros()
public TimeValue toMillis()
public TimeValue toSeconds()
public TimeValue toMinutes()
public TimeValue toHours()
public TimeValue toDays()