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 2836 2010-01-11 12:46:59Z schorlet $
|
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-2010 CodeLutin. All Rights Reserved.