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