org.openstreetmap.fma.jtiledownloader.datatypes
Class TileComparatorFactory.SimpleComparator

java.lang.Object
  extended by org.openstreetmap.fma.jtiledownloader.datatypes.TileComparatorFactory.SimpleComparator
All Implemented Interfaces:
java.util.Comparator<Tile>
Enclosing class:
TileComparatorFactory

private static class TileComparatorFactory.SimpleComparator
extends java.lang.Object
implements java.util.Comparator<Tile>

Inner class SimpleComparator


Constructor Summary
private TileComparatorFactory.SimpleComparator()
           
 
Method Summary
 int compare(Tile t1, Tile t2)
          This method first compares the z value of the two Tile objects.
 
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

TileComparatorFactory.SimpleComparator

private TileComparatorFactory.SimpleComparator()
Method Detail

compare

public int compare(Tile t1,
                   Tile t2)
This method first compares the z value of the two Tile objects. If they are the same the x values are compared and if they are also identical finally the y values of the two Tile objects are compared.

Specified by:
compare in interface java.util.Comparator<Tile>
See Also:
{@inheritDoc}