com.jivesoftware.base.database
Class Vote
java.lang.Object
com.jivesoftware.base.database.Vote
- All Implemented Interfaces:
- Cacheable, java.io.Serializable
public class Vote
- extends java.lang.Object
- implements Cacheable
Class to encapsulate the data encompassing a vote for a poll.
- See Also:
- Serialized Form
Constructor Summary |
protected |
Vote(long pollID,
long userID,
java.lang.String uniqueID,
int optionIndex)
|
protected |
Vote(long pollID,
long userID,
java.lang.String uniqueID,
int optionIndex,
java.util.Date voteDate)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Vote
protected Vote(long pollID,
long userID,
java.lang.String uniqueID,
int optionIndex,
java.util.Date voteDate)
Vote
protected Vote(long pollID,
long userID,
java.lang.String uniqueID,
int optionIndex)
getPollID
public long getPollID()
getUserID
public long getUserID()
getUniqueID
public java.lang.String getUniqueID()
getOptionIndex
public int getOptionIndex()
setOptionIndex
protected void setOptionIndex(int optionIndex)
getVoteDate
public java.util.Date getVoteDate()
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.
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
Copyright © 1999-2006 Jive Software.