taxisrus.implementation.scheduler_stuff
Class CustomerTimeComparator
java.lang.Object
|
+--taxisrus.implementation.scheduler_stuff.CustomerTimeComparator
- All Implemented Interfaces:
- Comparator
- public class CustomerTimeComparator
- extends Object
- implements Comparator
|
Method Summary |
int |
compare(Object customer_one,
Object customer_two)
Compare two customers by pickup time. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomerTimeComparator
public CustomerTimeComparator()
- Simple constructor.
compare
public int compare(Object customer_one,
Object customer_two)
- Compare two customers by pickup time.
Assumes no two customers will have all three of Name, PickupTime and
PickupAddress the same - very unlikely except in test.
- Specified by:
compare in interface Comparator
- See Also:
Comparator
API documentation for build 958