taxisrus.implementation.scheduler_stuff
Class CustomerLookupComparator
java.lang.Object
|
+--taxisrus.implementation.scheduler_stuff.CustomerLookupComparator
- All Implemented Interfaces:
- Comparator
- public class CustomerLookupComparator
- extends Object
- implements Comparator
|
Method Summary |
int |
compare(Object customer_one,
Object customer_two)
Compare two customers by Phone and Name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomerLookupComparator
public CustomerLookupComparator()
- Simple constructor.
compare
public int compare(Object customer_one,
Object customer_two)
- Compare two customers by Phone and Name. Will just compare Phone if the Phone fields differ.
Will try to compare pickup times, if they are not null - in other words, pickup times are used for storing
customers, but not for lookups.
- Specified by:
compare in interface Comparator
- See Also:
Comparator
API documentation for build 958