public enum StandardMasses extends Enum<StandardMasses>
Enum Constant and Description |
---|
co
Atomic mass of CO.
|
h2o
Atomic mass of H2O.
|
h2onh3
Atomic mass of H2o + NH3.
|
nh3
Atomic mass of NH3.
|
Modifier and Type | Field and Description |
---|---|
double |
mass
The mass.
|
Modifier and Type | Method and Description |
---|---|
static StandardMasses |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StandardMasses[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardMasses h2o
public static final StandardMasses nh3
public static final StandardMasses h2onh3
public static final StandardMasses co
public static StandardMasses[] values()
for (StandardMasses c : StandardMasses.values()) System.out.println(c);
public static StandardMasses 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 © 2019. All rights reserved.