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 Details

  • Method Details

    • getMatchKey

      public String getMatchKey​(Ion ion, int charge)
      Returns the key for the ion match uniquely representing a peak annotation.
      Parameters:
      ion - the ion matched
      charge - the charge
      Returns:
      the key for the ion match