public static class RankedSortedMultiCollection.RankedSortedMultiCollectionComparator extends java.lang.Object implements java.util.Comparator<RankedAbstractObject>, java.io.Serializable
RankedAbstractMetaObject
.
It used one of the sub-distances to compare the objects.Constructor and Description |
---|
RankedSortedMultiCollection.RankedSortedMultiCollectionComparator(int index)
New comparator
|
Modifier and Type | Method and Description |
---|---|
int |
compare(RankedAbstractObject o1,
RankedAbstractObject o2) |
public RankedSortedMultiCollection.RankedSortedMultiCollectionComparator(int index)
index
- index of the sub-distance to use for comparisonspublic int compare(RankedAbstractObject o1, RankedAbstractObject o2)
compare
in interface java.util.Comparator<RankedAbstractObject>