Class ReviewRatingStatisticsImpl
java.lang.Object
com.commercetools.history.models.common.ReviewRatingStatisticsImpl
- All Implemented Interfaces:
ReviewRatingStatistics,io.vrap.rmf.base.client.ModelBase
public class ReviewRatingStatisticsImpl
extends Object
implements ReviewRatingStatistics, io.vrap.rmf.base.client.ModelBase
ReviewRatingStatistics
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAverage rating of one target This number is rounded with 5 decimals.getCount()Number of ratings taken into accountHighest rating of one targetLowest rating of one targetThe full distribution of the ratings.inthashCode()voidsetAverageRating(Integer averageRating) Average rating of one target This number is rounded with 5 decimals.voidNumber of ratings taken into accountvoidsetHighestRating(Integer highestRating) Highest rating of one targetvoidsetLowestRating(Integer lowestRating) Lowest rating of one targetvoidsetRatingsDistribution(Object ratingsDistribution) The full distribution of the ratings.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionStringMethods inherited from interface com.commercetools.history.models.common.ReviewRatingStatistics
withReviewRatingStatistics
-
Constructor Details
-
ReviewRatingStatisticsImpl
public ReviewRatingStatisticsImpl()create empty instance
-
-
Method Details
-
getAverageRating
Average rating of one target This number is rounded with 5 decimals.
- Specified by:
getAverageRatingin interfaceReviewRatingStatistics- Returns:
- averageRating
-
getHighestRating
Highest rating of one target
- Specified by:
getHighestRatingin interfaceReviewRatingStatistics- Returns:
- highestRating
-
getLowestRating
Lowest rating of one target
- Specified by:
getLowestRatingin interfaceReviewRatingStatistics- Returns:
- lowestRating
-
getCount
Number of ratings taken into account
- Specified by:
getCountin interfaceReviewRatingStatistics- Returns:
- count
-
getRatingsDistribution
The full distribution of the ratings. The keys are the different ratings and the values are the count of reviews having this rating. Only the used ratings appear in this object.
- Specified by:
getRatingsDistributionin interfaceReviewRatingStatistics- Returns:
- ratingsDistribution
-
setAverageRating
Description copied from interface:ReviewRatingStatisticsAverage rating of one target This number is rounded with 5 decimals.
- Specified by:
setAverageRatingin interfaceReviewRatingStatistics- Parameters:
averageRating- value to be set
-
setHighestRating
Description copied from interface:ReviewRatingStatisticsHighest rating of one target
- Specified by:
setHighestRatingin interfaceReviewRatingStatistics- Parameters:
highestRating- value to be set
-
setLowestRating
Description copied from interface:ReviewRatingStatisticsLowest rating of one target
- Specified by:
setLowestRatingin interfaceReviewRatingStatistics- Parameters:
lowestRating- value to be set
-
setCount
Description copied from interface:ReviewRatingStatisticsNumber of ratings taken into account
- Specified by:
setCountin interfaceReviewRatingStatistics- Parameters:
count- value to be set
-
setRatingsDistribution
Description copied from interface:ReviewRatingStatisticsThe full distribution of the ratings. The keys are the different ratings and the values are the count of reviews having this rating. Only the used ratings appear in this object.
- Specified by:
setRatingsDistributionin interfaceReviewRatingStatistics- Parameters:
ratingsDistribution- value to be set
-
equals
-
hashCode
-