public enum DurationPrecision extends Enum<DurationPrecision>
| Enum Constant and Description |
|---|
DAY |
HOUR |
MINUTE |
MONTH |
MSEC |
SECOND |
YEAR |
| Modifier and Type | Method and Description |
|---|---|
int |
getLevel() |
static DurationPrecision |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DurationPrecision[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DurationPrecision YEAR
public static final DurationPrecision MONTH
public static final DurationPrecision DAY
public static final DurationPrecision HOUR
public static final DurationPrecision MINUTE
public static final DurationPrecision SECOND
public static final DurationPrecision MSEC
public static DurationPrecision[] values()
for (DurationPrecision c : DurationPrecision.values()) System.out.println(c);
public static DurationPrecision 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 int getLevel()
Copyright © 2018. All rights reserved.