P - Score parameter typeF - The type to apply scores topublic class FieldScores<P,F> extends Object implements ScoreParameters<P>
| Modifier and Type | Method and Description |
|---|---|
<E> E |
getAnalyze(Class<E> clazz) |
Map<Class<?>,Object> |
getAnalyzes() |
ScoreConfig<P,F> |
getConfig() |
P |
getParameters() |
List<FieldScore<F>> |
getRank(int rank)
Get all
FieldScore objects for a specific rank |
int |
getRankCount()
Get the number of ranks
|
List<List<FieldScore<F>>> |
getRankedScores()
Get a List of all the ranks.
|
FieldScore<F> |
getScoreFor(F field)
Get the
FieldScore object for a specific field. |
Map<F,FieldScore<F>> |
getScores() |
ScoreStrategy<P,F> |
getScoreStrategy() |
void |
rankScores()
(Re-)calculates rankings for all the fields, and also calculates a normalization of their score
|
void |
setDetailed(boolean detailed) |
public <E> E getAnalyze(Class<E> clazz)
getAnalyze in interface ScoreParameters<P>clazz - The class to get the analyze forpublic Map<Class<?>,Object> getAnalyzes()
getAnalyzes in interface ScoreParameters<P>public ScoreStrategy<P,F> getScoreStrategy()
getScoreStrategy in interface ScoreParameters<P>public P getParameters()
getParameters in interface ScoreParameters<P>public List<List<FieldScore<F>>> getRankedScores()
FieldScore objects in that rankpublic Map<F,FieldScore<F>> getScores()
HashMap copy of the scores that are contained in this objectpublic FieldScore<F> getScoreFor(F field)
FieldScore object for a specific field.field - Field to get data forpublic void rankScores()
public List<FieldScore<F>> getRank(int rank)
FieldScore objects for a specific rankrank - From 1 to getRankLength()public int getRankCount()
public ScoreConfig<P,F> getConfig()
public void setDetailed(boolean detailed)
detailed - True to store detailed information about which scorer gives which score to which field. False otherwiseCopyright © 2014. All rights reserved.