Jive Forums API (5.5.8) Developer Javadocs

com.jivesoftware.forum.database
Class AnswerCountStatusLevelCalculator.UserPointCacheKey

java.lang.Object
  extended by com.jivesoftware.forum.database.AnswerCountStatusLevelCalculator.UserPointCacheKey
All Implemented Interfaces:
Cacheable, com.tangosol.io.ExternalizableLite, java.io.Serializable
Enclosing class:
AnswerCountStatusLevelCalculator

public static class AnswerCountStatusLevelCalculator.UserPointCacheKey
extends java.lang.Object
implements Cacheable, com.tangosol.io.ExternalizableLite

Key that is used in the answerCountPointCache that should have a point value attached to it.

See Also:
Serialized Form

Constructor Summary
AnswerCountStatusLevelCalculator.UserPointCacheKey()
           
AnswerCountStatusLevelCalculator.UserPointCacheKey(long userID, int objectType, long objectID)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getCachedSize()
          Returns the approximate size of the Object in bytes.
 long getObjectID()
           
 int getObjectType()
           
 long getUserID()
           
 int hashCode()
           
 void readExternal(java.io.DataInput in)
           
 void setObjectID(long objectID)
           
 void setObjectType(int objectType)
           
 void setUserID(long userID)
           
 void writeExternal(java.io.DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnswerCountStatusLevelCalculator.UserPointCacheKey

public AnswerCountStatusLevelCalculator.UserPointCacheKey()

AnswerCountStatusLevelCalculator.UserPointCacheKey

public AnswerCountStatusLevelCalculator.UserPointCacheKey(long userID,
                                                          int objectType,
                                                          long objectID)
Method Detail

getUserID

public long getUserID()

setUserID

public void setUserID(long userID)

getObjectType

public int getObjectType()

setObjectType

public void setObjectType(int objectType)

getObjectID

public long getObjectID()

setObjectID

public void setObjectID(long objectID)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

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.

readExternal

public void readExternal(java.io.DataInput in)
                  throws java.io.IOException
Specified by:
readExternal in interface com.tangosol.io.ExternalizableLite
Throws:
java.io.IOException

writeExternal

public void writeExternal(java.io.DataOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface com.tangosol.io.ExternalizableLite
Throws:
java.io.IOException

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.