public class StarRating extends Rating
Modifier and Type | Field and Description |
---|---|
static String |
RATING_TITLE |
Constructor and Description |
---|
StarRating() |
Modifier and Type | Method and Description |
---|---|
double |
getAverageScore()
Calculate the score (min : 1 - max : 4).
|
double |
getAverageScoreRoundToHalf() |
double |
getScoreValue() |
String |
getTitle()
Get tilte of the rating type
|
getIdRating, getRatingCount, getRatingType, getRatingValue, getUser, setHistory, setIdRating, setRatingCount, setRatingType, setRatingValue, setScoreValue, setScoreValue, setUser
getDateCreation, getExtendableResourceType, getExtenderType, getIdExtendableResource, getIdHistory, getIpAddress, getUserGuid, setDateCreation, setExtendableResourceType, setExtenderType, setIdExtendableResource, setIdHistory, setIpAddress, setUserGuid
public static final String RATING_TITLE
public double getScoreValue()
getScoreValue
in class Rating
public double getAverageScore()
public double getAverageScoreRoundToHalf()
Copyright © 2022 City of Paris. All rights reserved.