Package io.outofprintmagazine.util
Class AggregatedScore
- java.lang.Object
-
- io.outofprintmagazine.util.AggregatedScore
-
- All Implemented Interfaces:
Comparable<AggregatedScore>
public class AggregatedScore extends Object implements Comparable<AggregatedScore>
-
-
Constructor Summary
Constructors Constructor Description AggregatedScore()AggregatedScore(String name)AggregatedScore(String name, BigDecimal raw, BigDecimal normalizer)AggregatedScore(String name, BigDecimal raw, BigDecimal normalizer, BigDecimal count)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(AggregatedScore o)AggregateScoregetAggregateScore()StringgetName()ScoregetScore()voidsetAggregateScore(AggregateScore aggregateScore)voidsetName(String name)voidsetScore(Score score)StringtoJsonString()
-
-
-
Constructor Detail
-
AggregatedScore
public AggregatedScore()
-
AggregatedScore
public AggregatedScore(String name)
-
AggregatedScore
public AggregatedScore(String name, BigDecimal raw, BigDecimal normalizer)
-
AggregatedScore
public AggregatedScore(String name, BigDecimal raw, BigDecimal normalizer, BigDecimal count)
-
-
Method Detail
-
compareTo
public int compareTo(AggregatedScore o)
- Specified by:
compareToin interfaceComparable<AggregatedScore>
-
getName
public String getName()
-
setName
public void setName(String name)
-
getScore
public Score getScore()
-
setScore
public void setScore(Score score)
-
getAggregateScore
public AggregateScore getAggregateScore()
-
setAggregateScore
public void setAggregateScore(AggregateScore aggregateScore)
-
toJsonString
public String toJsonString()
-
-