java.util.Comparator<SpaceObject>
protected static class ShipSensorProgram.DistanceSorter extends java.lang.Object implements java.util.Comparator<SpaceObject>
Modifier | Constructor | Description |
---|---|---|
protected |
DistanceSorter(SpaceObject me) |
Modifier and Type | Method | Description |
---|---|---|
int |
compare(SpaceObject o1,
SpaceObject o2) |
protected DistanceSorter(SpaceObject me)
public int compare(SpaceObject o1, SpaceObject o2)
compare
in interface java.util.Comparator<SpaceObject>