Enum IonMatch.MzErrorType
java.lang.Object
java.lang.Enum<IonMatch.MzErrorType>
com.compomics.util.experiment.identification.matches.IonMatch.MzErrorType
- All Implemented Interfaces:
Serializable
,Comparable<IonMatch.MzErrorType>
,java.lang.constant.Constable
- Enclosing class:
- IonMatch
public static enum IonMatch.MzErrorType extends Enum<IonMatch.MzErrorType>
Enum of the supported error types.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description Absolute
RelativePpm
Statistical
-
Field Summary
-
Method Summary
Modifier and Type Method Description static IonMatch.MzErrorType
getMzErrorType(int index)
Returns the error type corresponding to the given index.static IonMatch.MzErrorType
valueOf(String name)
Returns the enum constant of this type with the specified name.static IonMatch.MzErrorType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Field Details
-
name
The name of the error type. -
description
The description of the error type. -
unit
The unit to use
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getMzErrorType
Returns the error type corresponding to the given index. Error types are indexed according to the values() method. Null if not found.- Parameters:
index
- the index of the error type in the values() method- Returns:
- the corresponding error type
-