P - Score parameter typeF - The type to apply scores topublic abstract class AbstractScorer<P,F> extends Object implements FScorer<P,F>
| Constructor and Description |
|---|
AbstractScorer() |
| Modifier and Type | Method and Description |
|---|---|
abstract double |
getScoreFor(F field,
ScoreParameters<P> scores)
Determine the score for the given field and parameters.
|
FScorer<P,F> |
scoreWith(ScoreParameters<P> scores)
Determine if this scorer should apply scores to the fields under the given circumstances.
|
boolean |
workWith(ScoreParameters<P> scores)
Determine if this scorer should apply scores to the fields under the given circumstances.
|
public FScorer<P,F> scoreWith(ScoreParameters<P> scores)
FScorerpublic boolean workWith(ScoreParameters<P> scores)
scores - Score parameters and analyzes for the scoringpublic abstract double getScoreFor(F field, ScoreParameters<P> scores)
getScoreFor in interface FScorer<P,F>field - Field to scorescores - Parameters and analyzes for the scoringCopyright © 2014. All rights reserved.