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


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

Constructor Detail

CustomerTimeComparator

public CustomerTimeComparator()
Simple constructor.
Method Detail

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