public class Election extends Object implements IElectionResult
| Modifier and Type | Field and Description |
|---|---|
private boolean |
mayoral |
private Map<ICitizen,Integer> |
votes |
| Constructor and Description |
|---|
Election(boolean mayoral) |
| Modifier and Type | Method and Description |
|---|---|
void |
vote(ICitizen citizen)
Vote for citizen.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVotespublic void vote(ICitizen citizen)
IElectionResultvote in interface IElectionResultCopyright © 2011-2015 Sahits GmbH. All Rights Reserved.