org.chorem.pollen.votecounting.utils
Class Utils
java.lang.Object
org.chorem.pollen.votecounting.utils.Utils
public class Utils
- extends Object
Classe utilitaire pour les algorithmes de dépouillement.
- Version:
- $Id: Utils.java 3122 2012-01-30 20:43:30Z tchemit $
|
Constructor Summary |
Utils()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utils
public Utils()
calculatePercentage
public static double calculatePercentage(PercentageBehavior in,
List<PercentageBehavior> list)
calculateNbVotes
public static int calculateNbVotes(List list,
boolean byGroup)
- Calcul le nombre de votes d'une liste
- Parameters:
list - : liste d'éléments (doivent impléméntés ObjectWithList)byGroup - : condition sur le calcul
- Returns:
- nombre de votes
Copyright © 2009-2012 CodeLutin. All Rights Reserved.