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

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

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

Inner class QuadComparator


Constructor Summary
private TileComparatorFactory.QuadComparator()
           
 
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.QuadComparator

private TileComparatorFactory.QuadComparator()
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 multiple x and y values of two Tile objects are compared.

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