public class DistanceNodeComparator
extends java.lang.Object
implements java.util.Comparator
Comparator
to compare instances of
DistanceNode
.Constructor and Description |
---|
DistanceNodeComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares two
DistanceNode . |
public int compare(java.lang.Object o1, java.lang.Object o2)
DistanceNode
.compare
in interface java.util.Comparator
o1
- Object representing a DistanceNodeo2
- Object representing a DistanceNode