public enum EnergySource extends Enum<EnergySource>
Enum Constant and Description |
---|
BIOFUEL |
COAL |
GEOTHERMAL |
HYDROPOWER |
NATURAL_GAS |
NUCLEAR |
OIL |
OTHER |
SOLAR |
UNKNOWN |
WIND |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
static EnergySource |
valueOf(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 COAL
public static final EnergySource OIL
public static final EnergySource NATURAL_GAS
public static final EnergySource NUCLEAR
public static final EnergySource WIND
public static final EnergySource SOLAR
public static final EnergySource GEOTHERMAL
public static final EnergySource HYDROPOWER
public static final EnergySource BIOFUEL
public static final EnergySource UNKNOWN
public static final EnergySource OTHER
public static EnergySource[] values()
for (EnergySource c : EnergySource.values()) System.out.println(c);
public static EnergySource 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 nullpublic String getName()
Copyright © 2017–2025 OWASP Foundation. All rights reserved.