Interface IBallot
-
- All Known Implementing Classes:
Ballot
public interface IBallot
- Author:
- Andi Hotz, (c) Sahits GmbH, 2015 Created on Apr 06, 2015
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getNumberNo()
Retrieve number of negative votesint
getNumberYes()
Total number of positive votes.void
vote(boolean yes)
Vote for or against something.
-
-
-
Method Detail
-
vote
void vote(boolean yes)
Vote for or against something.- Parameters:
yes
- true if it is an agreable vote
-
getNumberYes
int getNumberYes()
Total number of positive votes.- Returns:
- number of positive votes.
-
getNumberNo
int getNumberNo()
Retrieve number of negative votes- Returns:
- total number of negative votes.
-
-