public abstract class AbstractScoresCache extends java.lang.Object implements ScoresCache
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractScoresCache() |
protected |
AbstractScoresCache(AbstractScoresCache cache) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Resets all scores
|
protected java.lang.Object |
clone(java.lang.Object e)
Subclasses should override clone and use the copy constructor.
|
java.lang.Double |
getScore(java.lang.String property)
Get the value for a particular score
|
java.util.Set<java.lang.String> |
getScores()
Get a collection of all scores which have been set
|
void |
putScore(java.lang.String property,
java.lang.Double score)
Add a score to the list of scores.
|
protected AbstractScoresCache()
protected AbstractScoresCache(AbstractScoresCache cache)
public void putScore(java.lang.String property,
java.lang.Double score)
putScore in interface ScoresCacheproperty - A string identifying the score and suitable for printing in headers.
E.g. #SCORE_TMSCOREscore - Value of the scorepersistent - Boolean indicating whether this score should be persisted
across serialization, cloning, and other changes.public java.lang.Double getScore(java.lang.String property)
getScore in interface ScoresCacheproperty - Name of the score to fetchpublic java.util.Set<java.lang.String> getScores()
getScores in interface ScoresCacheprotected java.lang.Object clone(java.lang.Object e)
throws java.lang.CloneNotSupportedException
e - java.lang.CloneNotSupportedExceptionpublic void clear()