com.intland.codebeamer.persistence.dto
Class ObjectRatingStatsDto
java.lang.Object
com.intland.codebeamer.persistence.dto.base.IdentifiableDto
com.intland.codebeamer.persistence.dto.base.ReferenceDto
com.intland.codebeamer.persistence.dto.ObjectRatingStatsDto
- All Implemented Interfaces:
- BaseDto, ReferableDto, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable
public class ObjectRatingStatsDto
- extends ReferenceDto
DTO object holding rating or voting statistics for an Object.
- See Also:
ObjectRatingDto
,
Serialized Form
Methods inherited from class com.intland.codebeamer.persistence.dto.base.ReferenceDto |
compareTo, equals, getDto, getIconUrl, getInterwikiLink, getShortDescription, getTypeId, getUrlLink, hashCode, setDto, setTypeId |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
ObjectRatingStatsDto
public ObjectRatingStatsDto()
getEntityTypeId
public java.lang.Integer getEntityTypeId()
- Deprecated. use getTypeId() instead
getEntityId
public java.lang.Integer getEntityId()
- Deprecated. use getId() instead
getReferencedObject
public java.lang.Object getReferencedObject()
- Deprecated. use getDto() instead
getNumberOfRatings
public long getNumberOfRatings()
setNumberOfRatings
public void setNumberOfRatings(long numberOfRatings)
getRatingTotal
public long getRatingTotal()
setRatingTotal
public void setRatingTotal(long totalRating)
getAverageRating
public double getAverageRating()
- Calculate the average rating.
The average is rounded to 1 digits.
- Returns:
- The average value
toString
public java.lang.String toString()
- Overrides:
toString
in class ReferenceDto
Copyright © 2006-2009 Intland Software. All rights reserved.