public enum Element extends Enum<Element>
Enum Constant and Description |
---|
Br |
C |
Ca |
Cl |
Cs |
F |
H |
I |
K |
Li |
Mg |
N |
Na |
O |
P |
S |
Modifier and Type | Method and Description |
---|---|
double |
getMass() |
String |
getName() |
String |
toString() |
static Element |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Element[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Element H
public static final Element Li
public static final Element C
public static final Element N
public static final Element O
public static final Element F
public static final Element Na
public static final Element Mg
public static final Element P
public static final Element S
public static final Element Cl
public static final Element K
public static final Element Ca
public static final Element Br
public static final Element I
public static final Element Cs
public static Element[] values()
for (Element c : Element.values()) System.out.println(c);
public static Element 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()
public double getMass()
Copyright © 2015 European Bioinformatics Institute. All Rights Reserved.