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