public class StationNameComp
extends java.lang.Object
implements java.util.Comparator
Constructor and Description |
---|
StationNameComp() |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object obj1,
java.lang.Object obj2)
Compares the two objects for order, returning a negative integer,
zero, or a positive integer as the first object is less than,
equal, or greater than the second object.
|
public int compare(java.lang.Object obj1, java.lang.Object obj2)
compare
in interface java.util.Comparator
java.lang.ClassCastException
- if either object is not of type
'String'.