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


Constructor Summary
CustomerCabComparator()
          Simple constructor
 
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
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

CustomerCabComparator

public CustomerCabComparator()
Simple constructor
Method Detail

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