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 ExtensionRating
public float getAverageVote()
getAverageVote
in interface ExtensionRating
public RatableExtensionRepository getRepository()
getRepository
in interface ExtensionRating
Copyright © 2004–2021 XWiki. All rights reserved.