com.hack23.cia.model.sweden.impl
Class BallotResult
java.lang.Object
com.hack23.cia.model.common.impl.BaseEntity
com.hack23.cia.model.sweden.impl.AbstractBallotMetaData
com.hack23.cia.model.sweden.impl.AbstractBallotResult
com.hack23.cia.model.sweden.impl.BallotResult
- All Implemented Interfaces:
- Data, MetaData, ModelObject, PersistedModelObject, Resource, ParliamentMetaData, Serializable
@Entity
public class BallotResult
- extends AbstractBallotResult
The Class BallotResult.
- See Also:
- Serialized Form
Constructor Summary |
BallotResult()
Instantiates a new ballot result. |
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 |
BallotResult
public BallotResult()
- Instantiates a new ballot result.
getResourceType
public ResourceType getResourceType()
- Description copied from interface:
Resource
- Gets the resource type.
- Returns:
- the resource type
isLosingVote
public boolean isLosingVote(Vote vote)
- Checks if is losing vote.
- Parameters:
vote
- the vote
- Returns:
- true, if is losing vote
setResourceType
public void setResourceType(ResourceType resourceType)
- Description copied from interface:
Resource
- Sets the resource type.
- Parameters:
resourceType
- the new resource type
Copyright © 2008-2009 www.hack23.com. All Rights Reserved.