public class WeightedSampleComparator<E> extends Object implements Comparator<WeightedSample<E>>
Comparator which compares WeightedSample objects by their 'weight' property value.| Constructor and Description |
|---|
WeightedSampleComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(WeightedSample<E> s1,
WeightedSample<E> s2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic int compare(WeightedSample<E> s1, WeightedSample<E> s2)
compare in interface Comparator<WeightedSample<E>>Copyright © 2011–2014 Volker Bergmann. All rights reserved.