org.openstreetmap.fma.jtiledownloader.datatypes
Class TileComparatorFactory
java.lang.Object
org.openstreetmap.fma.jtiledownloader.datatypes.TileComparatorFactory
public class TileComparatorFactory
- extends java.lang.Object
This class compares two tiles in three possible ways:
- Simply by order, z -> x -> y.
- By quad-tiles, z -> (quad x) -> (quad y) -> x -> y.
- By quad-tiles recursively (not supported yet — I have no idea how).
- Author:
- zverik
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMPARE_DONT
public static final int COMPARE_DONT
- See Also:
- Constant Field Values
COMPARE_SIMPLE
public static final int COMPARE_SIMPLE
- See Also:
- Constant Field Values
COMPARE_QUAD
public static final int COMPARE_QUAD
- See Also:
- Constant Field Values
COMPARE_RECURSIVE
public static final int COMPARE_RECURSIVE
- See Also:
- Constant Field Values
COMPARE_COUNT
public static final int COMPARE_COUNT
- See Also:
- Constant Field Values
comparators
private static java.util.Comparator<Tile>[] comparators
TileComparatorFactory
public TileComparatorFactory()
getComparator
public static java.util.Comparator<Tile> getComparator(int type)
sortTileList
public static void sortTileList(java.util.List<Tile> tileList)