Enum MMElementRule.Database
- java.lang.Object
-
- java.lang.Enum<MMElementRule.Database>
-
- org.openscience.cdk.formula.rules.MMElementRule.Database
-
- All Implemented Interfaces:
Serializable
,Comparable<MMElementRule.Database>
- Enclosing class:
- MMElementRule
public static enum MMElementRule.Database extends Enum<MMElementRule.Database>
A enumeration of the possible databases according the rules.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MMElementRule.Database
valueOf(String name)
Returns the enum constant of this type with the specified name.static MMElementRule.Database[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WILEY
public static final MMElementRule.Database WILEY
Wiley mass spectral database.
-
DNP
public static final MMElementRule.Database DNP
Dictionary of Natural Products Online mass spectral database.
-
-
Method Detail
-
values
public static MMElementRule.Database[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MMElementRule.Database c : MMElementRule.Database.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MMElementRule.Database valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-