- All Known Implementing Classes:
public interface EcNumberAn ec (enzyme classification) number. Implementations of this interface should be imutable. This makes them much more usefull as keys in maps. it is a good idea to validate that the data being passed in is a sane ec number.
- Matthew Pocock
Nested Class Summary
Nested Classes Modifier and Type Interface Description
EcNumber.ImplA simple implementation of EcNumber.
Fields Modifier and Type Field Description
EC_PATTERNA Pattern that can be used to parse EC strings into the indiidual numbers.
UNCLASSIFIEDConstant that represents EC number components that are as yet unclassified.
UNDEFINEDConstant that represents EC number components that are not defined.
static final Pattern EC_PATTERNA Pattern that can be used to parse EC strings into the indiidual numbers.
static final int UNDEFINEDConstant that represents EC number components that are not defined. This is often represented as a '-' in EC strings.
- See Also:
- Constant Field Values
int getClassNumber(int level)Get the class number associated with the particular level of the ec number.
The index can be between 0 and 3 inclusive. 0 correxpons to the top level class, 1 to the sub-class and so on. A return value of UNDEFINED indicates that this field is not populated.
level- the level in the ec classification to return the number for
- the value at that level