private class GenericFrame.AggregateHandler.AggregatorElementComparator extends java.lang.Object implements java.util.Comparator<AggregatorElement>
AggregatorElements using only the weights of their
contained Accumulator instances.Accumulator.getWeight()| Modifier | Constructor and Description |
|---|---|
private |
AggregatorElementComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(AggregatorElement o1,
AggregatorElement o2)
Compares two
AggregatorElements, based upon their
contained Accumulator's weights. |
public int compare(AggregatorElement o1, AggregatorElement o2)
AggregatorElements, based upon their
contained Accumulator's weights. Lower weights sort
first.compare in interface java.util.Comparator<AggregatorElement>o1 - AggregatorElement 1.o2 - AggregatorElement 2.