public class DefaultExtensionRating extends Object implements ExtensionRating
| Constructor and Description |
|---|
DefaultExtensionRating(int totalVotes,
float averageVote,
RatableExtensionRepository repository) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
float |
getAverageVote() |
RatableExtensionRepository |
getRepository() |
int |
getTotalVotes() |
int |
hashCode() |
public DefaultExtensionRating(int totalVotes,
float averageVote,
RatableExtensionRepository repository)
totalVotes - the total number of votesaverageVote - the average of all votesrepository - the repository from which the rating comes frompublic int getTotalVotes()
getTotalVotes in interface ExtensionRatingpublic float getAverageVote()
getAverageVote in interface ExtensionRatingpublic RatableExtensionRepository getRepository()
getRepository in interface ExtensionRatingCopyright © 2004–2017 XWiki. All rights reserved.