public static enum DateTimeHelper.TimeUnits extends Enum<DateTimeHelper.TimeUnits>
| Enum Constant and Description |
|---|
DAYS |
HOURS |
MILLISECONDS |
MINUTES |
SECONDS |
| Modifier and Type | Method and Description |
|---|---|
static DateTimeHelper.TimeUnits |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateTimeHelper.TimeUnits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateTimeHelper.TimeUnits MILLISECONDS
public static final DateTimeHelper.TimeUnits SECONDS
public static final DateTimeHelper.TimeUnits MINUTES
public static final DateTimeHelper.TimeUnits HOURS
public static final DateTimeHelper.TimeUnits DAYS
public static DateTimeHelper.TimeUnits[] values()
for (DateTimeHelper.TimeUnits c : DateTimeHelper.TimeUnits.values()) System.out.println(c);
public static DateTimeHelper.TimeUnits 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 nullCopyright © 2015. All rights reserved.