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