@Unstable
public interface AverageRating
Modifier and Type | Method and Description |
---|---|
AverageRating |
addRating(int rating)
Update the average rating by adding a new rating.
|
float |
getAverageVote() |
String |
getId() |
String |
getManagerId() |
int |
getNbVotes() |
org.xwiki.model.reference.EntityReference |
getReference() |
int |
getScaleUpperBound() |
Date |
getUpdatedAt() |
AverageRating |
removeRating(int rating)
Update the average rating by removing the given rating.
|
AverageRating |
updateRating(int oldRating,
int newRating)
Update the average rating by performing a change in an existing rating.
|
String getId()
String getManagerId()
org.xwiki.model.reference.EntityReference getReference()
float getAverageVote()
int getNbVotes()
int getScaleUpperBound()
Date getUpdatedAt()
AverageRating updateRating(int oldRating, int newRating)
oldRating
- the old rating value to be modified.newRating
- the new rating value to be applied.AverageRating removeRating(int rating)
rating
- the old rating to be removed.AverageRating addRating(int rating)
rating
- the new rating to be taken into account.Copyright © 2004–2021 XWiki. All rights reserved.