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