org.gswing.components.common
Class ListVote
java.lang.Object
org.gswing.components.common.Vote
org.gswing.components.common.ListVote
public class ListVote
- extends Vote
Purpose: Represents a vote in a List election..
Constructor Summary |
ListVote(int constituency,
int electionNo,
int votes,
String party)
Constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListVote
public ListVote(int constituency,
int electionNo,
int votes,
String party)
- Constructor.
- Parameters:
constituency
- The unique constituency number.electionNo
- The unique election number.votes
- The number of votes for a particular candidate / party.party
- The party (abbreviation) that recieved the votes.
getParty
public String getParty()
- The party that recieved the votes.
- Returns:
- The politiacl party.
Copyright © 2008. All Rights Reserved.