public class SoftRefPepSpectrumCache extends Object implements PeptideSpectrumCache
| Modifier and Type | Field and Description |
|---|---|
protected gnu.trove.map.TIntObjectMap<Map<Peptide,SoftReference<PeptideSpectrum>>> |
cache |
| Constructor and Description |
|---|
SoftRefPepSpectrumCache() |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.base.Optional<PeptideSpectrum> |
get(Peptide peptide,
int charge) |
void |
put(PeptideSpectrum peptideSpectrum) |
protected final gnu.trove.map.TIntObjectMap<Map<Peptide,SoftReference<PeptideSpectrum>>> cache
public void put(PeptideSpectrum peptideSpectrum)
put in interface PeptideSpectrumCachepublic com.google.common.base.Optional<PeptideSpectrum> get(Peptide peptide, int charge)
get in interface PeptideSpectrumCacheCopyright © 2016. All Rights Reserved.