public static class OnlineSectProof.CatCmp extends Object implements Comparator<String>
| Constructor and Description |
|---|
CatCmp(HashMap<String,OnlineSectProof.Counter> countCat,
HashMap<String,OnlineSectProof.Counter> totalCat,
HashMap<String,Integer> worstCaseCat)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(String c1,
String c2)
Higher number of not-sectioned students in the worst case goes first.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic CatCmp(HashMap<String,OnlineSectProof.Counter> countCat, HashMap<String,OnlineSectProof.Counter> totalCat, HashMap<String,Integer> worstCaseCat)
countCat - table (category, number of sequences of that category)totalCat - table (category, total number of students that were not
sectioned of a sequence from this category)worstCaseCat - (category, worst number of students that were not
sectioned of a sequence from this category)