Enum SequenceMatchingParameters.MatchingType
java.lang.Object
java.lang.Enum<SequenceMatchingParameters.MatchingType>
com.compomics.util.parameters.identification.advanced.SequenceMatchingParameters.MatchingType
- All Implemented Interfaces:
Serializable
,Comparable<SequenceMatchingParameters.MatchingType>
,java.lang.constant.Constable
- Enclosing class:
- SequenceMatchingParameters
public static enum SequenceMatchingParameters.MatchingType extends Enum<SequenceMatchingParameters.MatchingType>
The different types of amino acid matching.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description aminoAcid
Matches amino acids.indistiguishableAminoAcids
Matches amino acids of indistinguishable masses (I/L).string
Matches character strings only. -
Field Summary
Fields Modifier and Type Field Description String
description
The description.int
index
The index of the type as integer. -
Method Summary
Modifier and Type Method Description static String
getCommandLineOptions()
Returns the different matching types as command line options description.static SequenceMatchingParameters.MatchingType
getMatchingType(int index)
Returns the matching type corresponding to the given index.String
toString()
static SequenceMatchingParameters.MatchingType
valueOf(String name)
Returns the enum constant of this type with the specified name.static SequenceMatchingParameters.MatchingType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
string
Matches character strings only. -
aminoAcid
Matches amino acids. -
indistiguishableAminoAcids
Matches amino acids of indistinguishable masses (I/L).
-
-
Field Details
-
index
public final int indexThe index of the type as integer. -
description
The description.
-
-
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
-
toString
- Overrides:
toString
in classEnum<SequenceMatchingParameters.MatchingType>
-
getCommandLineOptions
Returns the different matching types as command line options description.- Returns:
- the different matching types as command line options description
-
getMatchingType
Returns the matching type corresponding to the given index.- Parameters:
index
- the index of the matching type- Returns:
- the matching type
-