protected static class KDTree.PairFirstVectorizableIndexComparator extends AbstractCloneableSerializable implements java.util.Comparator<Pair<? extends Vectorizable,?>>
Modifier and Type | Field and Description |
---|---|
VectorizableIndexComparator |
comparator
Embedded comparator for the Vectorizable argument.
|
Constructor and Description |
---|
PairFirstVectorizableIndexComparator(int index)
Creates a new instance of PairFirstVectorizableIndexComparator
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Pair<? extends Vectorizable,?> o1,
Pair<? extends Vectorizable,?> o2) |
clone
public VectorizableIndexComparator comparator
public PairFirstVectorizableIndexComparator(int index)
index
- Index of the Vectorizable to compare against.public int compare(Pair<? extends Vectorizable,?> o1, Pair<? extends Vectorizable,?> o2)
compare
in interface java.util.Comparator<Pair<? extends Vectorizable,?>>