public enum UnitsOfEnergy extends Enum<UnitsOfEnergy>
Java class for Units_of_Energy.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="Units_of_Energy">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="J"/>
<enumeration value="MeV"/>
<enumeration value="eV"/>
<enumeration value="keV"/>
</restriction>
</simpleType>
| Modifier and Type | Method and Description |
|---|---|
static UnitsOfEnergy |
fromValue(String v) |
String |
value() |
static UnitsOfEnergy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnitsOfEnergy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnitsOfEnergy J
public static final UnitsOfEnergy ME_V
public static final UnitsOfEnergy E_V
public static final UnitsOfEnergy KE_V
public static UnitsOfEnergy[] values()
for (UnitsOfEnergy c : UnitsOfEnergy.values()) System.out.println(c);
public static UnitsOfEnergy 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 value()
public static UnitsOfEnergy fromValue(String v)
Copyright © 2020. All rights reserved.