com.compomics.util.experiment.biology
Enum Ion.IonType

java.lang.Object
  extended by java.lang.Enum<Ion.IonType>
      extended by com.compomics.util.experiment.biology.Ion.IonType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Ion.IonType>
Enclosing class:
Ion

public static enum Ion.IonType
extends java.lang.Enum<Ion.IonType>

An enumerator of the supported ion types.


Enum Constant Summary
ELEMENTARY_ION
          Identifier for an elementary ion
GLYCON
          Identifier for a glycon
IMMONIUM_ION
          Identifier for an immonium ion.
PEPTIDE_FRAGMENT_ION
          Identifier for a peptide fragment ion.
PRECURSOR_ION
          Identifier for an MH ion.
REPORTER_ION
          Identifier for a reporter ion.
UNKNOWN
          This int is the identifier for an unknown ion.
 
Method Summary
static Ion.IonType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Ion.IonType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PEPTIDE_FRAGMENT_ION

public static final Ion.IonType PEPTIDE_FRAGMENT_ION
Identifier for a peptide fragment ion.


PRECURSOR_ION

public static final Ion.IonType PRECURSOR_ION
Identifier for an MH ion. The number of H is not represented here.


IMMONIUM_ION

public static final Ion.IonType IMMONIUM_ION
Identifier for an immonium ion.


REPORTER_ION

public static final Ion.IonType REPORTER_ION
Identifier for a reporter ion.


GLYCON

public static final Ion.IonType GLYCON
Identifier for a glycon


ELEMENTARY_ION

public static final Ion.IonType ELEMENTARY_ION
Identifier for an elementary ion


UNKNOWN

public static final Ion.IonType UNKNOWN
This int is the identifier for an unknown ion.

Method Detail

values

public static Ion.IonType[] 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 (Ion.IonType c : Ion.IonType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Ion.IonType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2013. All Rights Reserved.