public enum LongTime extends Enum<LongTime>
| Modifier and Type | Field and Description |
|---|---|
static long |
EPOCH_MICROS |
static long |
EPOCH_MILLIS |
static long |
EPOCH_NANOS |
static long |
EPOCH_SECS |
static long |
MAX_MICROS |
static long |
MAX_MILLIS |
static long |
MAX_NANOS |
static long |
MAX_SECS |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isMicros(long time) |
static boolean |
isMillis(long time) |
static boolean |
isNanos(long time) |
static boolean |
isSecs(long time) |
static long |
toMicros(long time) |
static long |
toMillis(long time) |
static long |
toNanos(long time) |
static long |
toSecs(long time) |
static LongTime |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LongTime[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final long MAX_NANOS
public static final long MAX_MICROS
public static final long MAX_MILLIS
public static final long MAX_SECS
public static final long EPOCH_SECS
public static final long EPOCH_MILLIS
public static final long EPOCH_MICROS
public static final long EPOCH_NANOS
public static LongTime[] values()
for (LongTime c : LongTime.values()) System.out.println(c);
public static LongTime valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static boolean isSecs(long time)
public static boolean isMillis(long time)
public static boolean isMicros(long time)
public static boolean isNanos(long time)
public static long toSecs(long time)
public static long toMillis(long time)
public static long toMicros(long time)
public static long toNanos(long time)
Copyright © 2020. All rights reserved.