@Unstable public class UpdatedRatingEvent extends AbstractRatingEvent implements org.xwiki.observation.event.Event
Rating
is updated.
The event is sent with the following informations:
- source: the identifier of the RatingsManager
- data: the Rating
updated.Constructor and Description |
---|
UpdatedRatingEvent(Rating rating,
int oldVote)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getOldVote() |
int |
hashCode() |
boolean |
matches(Object otherEvent) |
String |
toString() |
getRating
public UpdatedRatingEvent(Rating rating, int oldVote)
rating
- the updated rating.oldVote
- the old vote of the rating before the update.public int getOldVote()
public boolean matches(Object otherEvent)
matches
in interface org.xwiki.observation.event.Event
public boolean equals(Object o)
equals
in class AbstractRatingEvent
public int hashCode()
hashCode
in class AbstractRatingEvent
public String toString()
toString
in class AbstractRatingEvent
Copyright © 2004–2021 XWiki. All rights reserved.