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)
ScoresCache
putScore
in interface ScoresCache
property
- 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)
ScoresCache
ScoresCache.putScore(String, Double)
.getScore
in interface ScoresCache
property
- Name of the score to fetchpublic Set<String> getScores()
ScoresCache
getScores
in interface ScoresCache
protected Object clone(Object e) throws CloneNotSupportedException
e
- CloneNotSupportedException
public void clear()
Copyright © 2000–2016 BioJava. All rights reserved.