public class ArrayIndexComparator extends Object implements Comparator<Integer>
| Constructor and Description |
|---|
ArrayIndexComparator(double[] wordWeights) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Integer arg0,
Integer arg1) |
static Integer[] |
integerRange(double[] wordWeights) |
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 ArrayIndexComparator(double[] wordWeights)
public int compare(Integer arg0, Integer arg1)
compare in interface Comparator<Integer>public static Integer[] integerRange(double[] wordWeights)