|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.chorem.pollen.votecounting.utils.Utils
public class Utils
Classe utilitaire pour les algorithmes de dépouillement.
| Constructor Summary | |
|---|---|
Utils()
|
|
| Method Summary | |
|---|---|
static int |
calculateNbVotes(java.util.List list,
boolean byGroup)
Calcul le nombre de votes d'une liste |
static double |
calculatePercentage(PercentageBehavior in,
java.util.List<PercentageBehavior> list)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Utils()
| Method Detail |
|---|
public static double calculatePercentage(PercentageBehavior in,
java.util.List<PercentageBehavior> list)
public static int calculateNbVotes(java.util.List list,
boolean byGroup)
list - : liste d'éléments (doivent impléméntés ObjectWithList)byGroup - : condition sur le calcul
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||