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