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 DAY
public static final Cycle MONTH
public static final Cycle YEAR
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 2014, Silanis Technology, Inc. All rights reserved.