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 int
compareTo(AggregatedScore o)
AggregateScore
getAggregateScore()
String
getName()
Score
getScore()
void
setAggregateScore(AggregateScore aggregateScore)
void
setName(String name)
void
setScore(Score score)
String
toJsonString()
-
-
-
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:
compareTo
in 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()
-
-