public enum Atom extends Enum<Atom> implements Mass
Modifier and Type | Method and Description |
---|---|
double |
getAvgMass() |
double |
getCharge() |
String |
getFormula() |
double |
getMonoMass() |
String |
getName() |
static Atom |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Atom[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Atom[] values()
for (Atom c : Atom.values()) System.out.println(c);
public static Atom 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 String getFormula()
public double getCharge()
public double getMonoMass()
getMonoMass
in interface Mass
public double getAvgMass()
getAvgMass
in interface Mass
Copyright © 2015 European Bioinformatics Institute. All Rights Reserved.