public abstract class AbstractScoresCache extends Object implements ScoresCache
ScoresCache with the shared code used
in all objects with a variables cache.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractScoresCache() |
protected |
AbstractScoresCache(AbstractScoresCache cache) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the cached scores.
|
protected Object |
clone(Object e)
Subclasses should override clone and use the copy constructor.
|
Double |
getScore(String property)
Get the value for a particular score.
|
Set<String> |
getScores()
Get a collection of all scores that have been set.
|
void |
putScore(String property,
Double score)
Add a score to the list of scores.
|
protected AbstractScoresCache()
protected AbstractScoresCache(AbstractScoresCache cache)
public void putScore(String property, Double score)
ScoresCacheputScore in interface ScoresCacheproperty - A string identifying the score and suitable for printing
in headers. Example names found in: MultipleAlignmentScorer.score - Value of the scorepublic Double getScore(String property)
ScoresCacheScoresCache.putScore(String, Double).getScore in interface ScoresCacheproperty - Name of the score to fetchpublic Set<String> getScores()
ScoresCachegetScores in interface ScoresCacheprotected Object clone(Object e) throws CloneNotSupportedException
e - CloneNotSupportedExceptionpublic void clear()
Copyright © 2000–2016 BioJava. All rights reserved.