private class SelectDestinationDialog.DestinationComparator extends java.lang.Object implements java.util.Comparator<SelectDestinationDialog.Destination>
Constructor and Description |
---|
DestinationComparator(Player player) |
Modifier and Type | Method and Description |
---|---|
int |
compare(SelectDestinationDialog.Destination choice1,
SelectDestinationDialog.Destination choice2) |
protected int |
compareNames(Location loc1,
Location loc2)
Compare the names of two locations.
|
protected final Player owner
public DestinationComparator(Player player)
public int compare(SelectDestinationDialog.Destination choice1, SelectDestinationDialog.Destination choice2)
compare
in interface java.util.Comparator<SelectDestinationDialog.Destination>