|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.isti.trinetwatch.station.StationNameComp
Class StationNameComp implements a comparator that compares two station name strings, using any leading network code ('NN-') as a secondary comparison value.
Constructor Summary | |
StationNameComp()
|
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
Constructor Detail |
public StationNameComp()
Method Detail |
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'.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |