public class ChoiceScore extends Object implements ChoiceIdAble, Comparable<ChoiceScore>, Serializable
scoreOrder and this class is
comparable of this data.ChoiceIdAble.ChoiceIdAbleById| Modifier and Type | Field and Description |
|---|---|
protected static BigDecimal |
MIN_VALUE |
static com.google.common.base.Function<ChoiceScore,Integer> |
SCORE_BY_ORDER |
static com.google.common.base.Function<ChoiceScore,BigDecimal> |
SCORE_BY_VALUE |
| Constructor and Description |
|---|
ChoiceScore() |
| Modifier and Type | Method and Description |
|---|---|
void |
addScoreValue(double scoreToAdd) |
int |
compareTo(ChoiceScore o) |
String |
getChoiceId() |
int |
getScoreOrder() |
BigDecimal |
getScoreValue() |
static ChoiceScore |
newScore(String choiceId,
BigDecimal scoreValue) |
void |
setChoiceId(String choiceId) |
void |
setScoreOrder(int scoreOrder) |
void |
setScoreValue(BigDecimal scoreValue) |
public static final com.google.common.base.Function<ChoiceScore,Integer> SCORE_BY_ORDER
protected static final BigDecimal MIN_VALUE
public static final com.google.common.base.Function<ChoiceScore,BigDecimal> SCORE_BY_VALUE
public static ChoiceScore newScore(String choiceId, BigDecimal scoreValue)
public String getChoiceId()
getChoiceId in interface ChoiceIdAblepublic BigDecimal getScoreValue()
public int getScoreOrder()
public void setScoreOrder(int scoreOrder)
public void setChoiceId(String choiceId)
public void addScoreValue(double scoreToAdd)
public void setScoreValue(BigDecimal scoreValue)
public int compareTo(ChoiceScore o)
compareTo in interface Comparable<ChoiceScore>Copyright © 2009-2012 CodeLutin. All Rights Reserved.