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