r3564 - trunk/pollen-votecounting-api/src/main/java/org/chorem/pollen/votecounting/strategy
Author: tchemit Date: 2012-06-26 06:59:29 +0200 (Tue, 26 Jun 2012) New Revision: 3564 Url: http://chorem.org/repositories/revision/pollen/3564 Log: change method signature Modified: trunk/pollen-votecounting-api/src/main/java/org/chorem/pollen/votecounting/strategy/AbstractVoteCountingStrategy.java Modified: trunk/pollen-votecounting-api/src/main/java/org/chorem/pollen/votecounting/strategy/AbstractVoteCountingStrategy.java =================================================================== --- trunk/pollen-votecounting-api/src/main/java/org/chorem/pollen/votecounting/strategy/AbstractVoteCountingStrategy.java 2012-06-26 04:58:53 UTC (rev 3563) +++ trunk/pollen-votecounting-api/src/main/java/org/chorem/pollen/votecounting/strategy/AbstractVoteCountingStrategy.java 2012-06-26 04:59:29 UTC (rev 3564) @@ -40,6 +40,7 @@ import java.util.Locale; import java.util.Map; import java.util.Set; +import java.util.SortedMap; import static org.nuiton.i18n.I18n.l_; @@ -65,11 +66,11 @@ return result; } - public Map<String, ChoiceScore> votersToResult(Set<Voter> voters) { + public SortedMap<String, ChoiceScore> votersToResult(Set<Voter> voters) { // get all choice Id Set<String> choiceIds = getAllChoiceIds(voters); - Map<String, ChoiceScore> resultByChoice = Maps.newTreeMap(); + SortedMap<String, ChoiceScore> resultByChoice = Maps.newTreeMap(); // creates all empty result for choice for (String choiceId : choiceIds) {
participants (1)
-
tchemit@users.chorem.org