@Unstable public abstract class AbstractAverageRatingEvent extends Object implements org.xwiki.observation.event.Event
AverageRating
updates.Constructor and Description |
---|
AbstractAverageRatingEvent()
Default constructor.
|
AbstractAverageRatingEvent(AverageRating newAverageRating,
float oldAverageVote,
int oldTotalVote)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
AverageRating |
getNewAverageRating() |
double |
getOldAverageVote() |
long |
getOldTotalVote() |
int |
hashCode() |
String |
toString() |
public AbstractAverageRatingEvent()
public AbstractAverageRatingEvent(AverageRating newAverageRating, float oldAverageVote, int oldTotalVote)
newAverageRating
- the new average rating.oldAverageVote
- the old average value, before the update.oldTotalVote
- the old total number of vote, before the update.public double getOldAverageVote()
public long getOldTotalVote()
public AverageRating getNewAverageRating()
Copyright © 2004–2021 XWiki. All rights reserved.