Interface IElectionResult

  • All Known Implementing Classes:
    Election

    public interface IElectionResult
    Author:
    Andi Hotz, (c) Sahits GmbH, 2015 Created on Apr 06, 2015
    • Method Detail

      • vote

        void vote​(ICitizen citizen)
        Vote for citizen.
        Parameters:
        citizen - for whom to vote.
      • getVotes

        java.util.Map<ICitizen,​java.lang.Integer> getVotes()
        Retrieve the votes every citizen recieved.
        Returns:
        map of citizens and their votes.