stresstests.datasets
Class ComparatorByName

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

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

A Comparator for two cities - by their name, state, and zip code ComparatorByName 22 March 2006

Author:
Viera K. Proulx

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

ComparatorByName

public ComparatorByName()
Method Detail

compare

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

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