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, waitequalspublic ArrayIndexComparator(double[] wordWeights)
public int compare(Integer arg0, Integer arg1)
compare in interface Comparator<Integer>public static Integer[] integerRange(double[] wordWeights)