public enum EnergySource extends java.lang.Enum<EnergySource>
Enum Constant and Description |
---|
HYDRO |
NUCLEAR |
OTHER |
SOLAR |
THERMAL |
WIND |
Modifier and Type | Method and Description |
---|---|
boolean |
isIntermittent() |
static EnergySource |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnergySource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnergySource HYDRO
public static final EnergySource NUCLEAR
public static final EnergySource WIND
public static final EnergySource THERMAL
public static final EnergySource SOLAR
public static final EnergySource OTHER
public static EnergySource[] values()
for (EnergySource c : EnergySource.values()) System.out.println(c);
public static EnergySource valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isIntermittent()