Package org.genesys.taxonomy.checker
Class BestScore
java.lang.Object
org.genesys.taxonomy.checker.BestScore
BestScore helps keeping track with best scores during streaming operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the best score.voidupdate(double score) Update best score.
-
Constructor Details
-
BestScore
public BestScore()
-
-
Method Details
-
getBestScore
public double getBestScore()Gets the best score.- Returns:
- the best score
-
update
public void update(double score) Update best score. Not thread safe!- Parameters:
score- the score
-