public class ServerLocationComparator
extends java.lang.Object
implements java.util.Comparator<java.lang.Object>
ServerLocation
objects by their
location names using the String natural order.Constructor and Description |
---|
ServerLocationComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares two
ServerLocation objects by their
location names using the String natural order. |
public int compare(java.lang.Object o1, java.lang.Object o2)
ServerLocation
objects by their
location names using the String natural order.compare
in interface java.util.Comparator<java.lang.Object>
Comparator.compare(java.lang.Object, java.lang.Object)