stresstests.datasets
Class ComparatorByLatitude

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

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

A Comparator for two cities - by their latitude ComparatorByLatitude 22 March 2006

Author:
Viera K. Proulx

Constructor Summary
ComparatorByLatitude()
           
 
Method Summary
 int compare(City city1, City city2)
          compare the two given city objects by their latitude
 
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

ComparatorByLatitude

public ComparatorByLatitude()
Method Detail

compare

public int compare(City city1,
                   City city2)
compare the two given city objects by their latitude

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