Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.database
Class RatingCacheObject

java.lang.Object
  extended by 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)
           
 
Method Summary
 double calculateMeanRating()
           
 int getCachedSize()
          Returns the approximate size of the Object in bytes.
 java.util.List getGuestRatings()
           
 double getMeanRating()
           
 java.util.Map getUserRatings()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RatingCacheObject

public RatingCacheObject(java.util.Map userRatings,
                         java.util.List guestRatings)
Method Detail

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()

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.