com.jivesoftware.forum.database
Class RatingCacheObject
java.lang.Object
com.jivesoftware.forum.database.RatingCacheObject
- All Implemented Interfaces:
- Cacheable, java.io.Serializable
public class RatingCacheObject
- extends java.lang.Object
- implements Cacheable
- See Also:
- Serialized Form
Constructor Summary |
RatingCacheObject(java.util.Map userRatings,
java.util.List guestRatings)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RatingCacheObject
public RatingCacheObject(java.util.Map userRatings,
java.util.List guestRatings)
getUserRatings
public java.util.Map getUserRatings()
getGuestRatings
public java.util.List getGuestRatings()
getCachedSize
public int getCachedSize()
- Description copied from interface:
Cacheable
- Returns the approximate size of the Object in bytes. The size should be
considered to be a best estimate of how much memory the Object occupies
and may be based on empirical trials or dynamic calculations.
- Specified by:
getCachedSize
in interface Cacheable
- Returns:
- the size of the Object in bytes.
getMeanRating
public double getMeanRating()
calculateMeanRating
public double calculateMeanRating()
Copyright © 1999-2006 Jive Software.