taxisrus.implementation.scheduler_stuff
Class CustomerCabComparator
java.lang.Object
|
+--taxisrus.implementation.scheduler_stuff.CustomerCabComparator
- All Implemented Interfaces:
- Comparator
- public class CustomerCabComparator
- extends Object
- implements Comparator
|
Method Summary |
int |
compare(Object customer_one,
Object customer_two)
Compare two customers by cab ID. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomerCabComparator
public CustomerCabComparator()
- Simple constructor
compare
public int compare(Object customer_one,
Object customer_two)
- Compare two customers by cab ID.
Assumes no two cabs will have the same ID.
Will throw a NullPointerException if the customers have not been assigned cabs.
- Specified by:
compare in interface Comparator
- See Also:
Comparator
API documentation for build 958