stresstests.datasets
Class ComparatorByZip

java.lang.Object
  extended by stresstests.datasets.ComparatorByZip
All Implemented Interfaces:
java.util.Comparator<City>

public class ComparatorByZip
extends java.lang.Object
implements java.util.Comparator<City>

A Comparator for two cities - by their zip code only ComparatorByLatitude 22 March 2006

Author:
Viera K. Proulx

Constructor Summary
ComparatorByZip()
           
 
Method Summary
 int compare(City city1, City city2)
          compare the two given city objects by zip code only
 
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

ComparatorByZip

public ComparatorByZip()
Method Detail

compare

public int compare(City city1,
                   City city2)
compare the two given city objects by zip code only

Specified by:
compare in interface java.util.Comparator<City>