Class IonMatchKeysCache
java.lang.Object
com.compomics.util.experiment.identification.spectrum_annotation.IonMatchKeysCache
public class IonMatchKeysCache extends Object
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 Constructor Description IonMatchKeysCache()
Constructor. -
Method Summary
Modifier and Type Method Description String
getMatchKey(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
-