Class IonMatchKeysCache
java.lang.Object
com.compomics.util.experiment.identification.spectrum_annotation.IonMatchKeysCache
Cache for the keys of the ions. Warning: the cache is not thread safe,
separate caches should be used for different threads. Using a single cache
results in locks or concurrent modifications.
- Author:
- Marc Vaudel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMatchKey(Ion ion, int charge) Returns the key for the ion match uniquely representing a peak annotation.
-
Constructor Details
-
IonMatchKeysCache
public IonMatchKeysCache()Constructor.
-
-
Method Details
-
getMatchKey
Returns the key for the ion match uniquely representing a peak annotation.- Parameters:
ion- the ion matchedcharge- the charge- Returns:
- the key for the ion match
-