public final class TimeUnits
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.concurrent.TimeUnit |
fromString(java.lang.String unit) |
static java.util.concurrent.TimeUnit |
greater(java.util.concurrent.TimeUnit a,
java.util.concurrent.TimeUnit b) |
static java.util.concurrent.TimeUnit |
lesser(java.util.concurrent.TimeUnit a,
java.util.concurrent.TimeUnit b) |
static long |
toDays(long duration,
java.util.concurrent.TimeUnit unit) |
static long |
toHours(long duration,
java.util.concurrent.TimeUnit unit) |
static long |
toMicros(long duration,
java.util.concurrent.TimeUnit unit) |
static long |
toMillis(long duration,
java.util.concurrent.TimeUnit unit) |
static long |
toMinutes(long duration,
java.util.concurrent.TimeUnit unit) |
static long |
toNanos(long duration,
java.util.concurrent.TimeUnit unit) |
static long |
toSeconds(long duration,
java.util.concurrent.TimeUnit unit) |
static java.lang.String |
toString(java.util.concurrent.TimeUnit unit) |
public static java.util.concurrent.TimeUnit lesser(java.util.concurrent.TimeUnit a, java.util.concurrent.TimeUnit b)
public static java.util.concurrent.TimeUnit greater(java.util.concurrent.TimeUnit a, java.util.concurrent.TimeUnit b)
public static java.util.concurrent.TimeUnit fromString(java.lang.String unit)
public static java.lang.String toString(java.util.concurrent.TimeUnit unit)
public static long toNanos(long duration, java.util.concurrent.TimeUnit unit)
public static long toMicros(long duration, java.util.concurrent.TimeUnit unit)
public static long toMillis(long duration, java.util.concurrent.TimeUnit unit)
public static long toSeconds(long duration, java.util.concurrent.TimeUnit unit)
public static long toMinutes(long duration, java.util.concurrent.TimeUnit unit)
public static long toHours(long duration, java.util.concurrent.TimeUnit unit)
public static long toDays(long duration, java.util.concurrent.TimeUnit unit)