|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hack23.cia.model.common.impl.BaseEntity com.hack23.cia.model.sweden.impl.AbstractBallotMetaData com.hack23.cia.model.sweden.impl.AbstractBallotResult
@Entity public abstract class AbstractBallotResult
The Class AbstractBallotResult.
Field Summary | |
---|---|
protected long |
opponentVotes
The opponent votes. |
protected Vote.Position |
winningPosition
The winning position. |
protected long |
winningVotes
The winning votes. |
Fields inherited from class com.hack23.cia.model.sweden.impl.AbstractBallotMetaData |
---|
absentVotes, neutralVotes, noVotes, totalVotes, yesVotes |
Constructor Summary | |
---|---|
AbstractBallotResult()
Instantiates a new abstract ballot result. |
Method Summary | |
---|---|
void |
calcWinningPosition()
Calc winning position. |
long |
getOpponentVotes()
Gets the opponent votes. |
Vote.Position |
getWinningPosition()
Gets the winning position. |
long |
getWinningVotes()
Gets the winning votes. |
void |
setOpponentVotes(long opponentVotes)
Sets the opponent votes. |
void |
setWinningPosition(Vote.Position winningPosition)
Sets the winning position. |
void |
setWinningVotes(long winningVotes)
Sets the winning votes. |
Methods inherited from class com.hack23.cia.model.sweden.impl.AbstractBallotMetaData |
---|
getAbsentVotes, getId, getNeutralVotes, getNoVotes, getTotalVotes, getVersion, getYesVotes, newVote, setAbsentVotes, setId, setNeutralVotes, setNoVotes, setTotalVotes, setVersion, setYesVotes |
Methods inherited from class com.hack23.cia.model.common.impl.BaseEntity |
---|
equals, hashCode, isNew |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.hack23.cia.model.common.api.Resource |
---|
getResourceType, setResourceType |
Methods inherited from interface com.hack23.cia.model.common.api.PersistedModelObject |
---|
isNew |
Field Detail |
---|
protected long opponentVotes
protected Vote.Position winningPosition
protected long winningVotes
Constructor Detail |
---|
public AbstractBallotResult()
Method Detail |
---|
public void calcWinningPosition()
public long getOpponentVotes()
public Vote.Position getWinningPosition()
public long getWinningVotes()
public void setOpponentVotes(long opponentVotes)
opponentVotes
- the new opponent votespublic void setWinningPosition(Vote.Position winningPosition)
winningPosition
- the new winning positionpublic void setWinningVotes(long winningVotes)
winningVotes
- the new winning votes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |