private static enum PropertiesUtil.TimeUnit extends java.lang.Enum<PropertiesUtil.TimeUnit>
Enum Constant and Description |
---|
DAYS |
HOURS |
MICROS |
MILLIS |
MINUTES |
NANOS |
SECONDS |
Modifier and Type | Field and Description |
---|---|
private java.lang.String[] |
descriptions |
private java.time.temporal.ChronoUnit |
timeUnit |
Modifier and Type | Method and Description |
---|---|
(package private) static java.time.Duration |
getDuration(java.lang.String time) |
(package private) java.time.temporal.ChronoUnit |
getTimeUnit() |
static PropertiesUtil.TimeUnit |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PropertiesUtil.TimeUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PropertiesUtil.TimeUnit NANOS
public static final PropertiesUtil.TimeUnit MICROS
public static final PropertiesUtil.TimeUnit MILLIS
public static final PropertiesUtil.TimeUnit SECONDS
public static final PropertiesUtil.TimeUnit MINUTES
public static final PropertiesUtil.TimeUnit HOURS
public static final PropertiesUtil.TimeUnit DAYS
private final java.lang.String[] descriptions
private final java.time.temporal.ChronoUnit timeUnit
public static PropertiesUtil.TimeUnit[] values()
for (PropertiesUtil.TimeUnit c : PropertiesUtil.TimeUnit.values()) System.out.println(c);
public static PropertiesUtil.TimeUnit valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nulljava.time.temporal.ChronoUnit getTimeUnit()
static java.time.Duration getDuration(java.lang.String time)