view flys-backend/src/main/java/de/intevation/flys/importer/parsers/tim/LexiComparator.java @ 5543:732a8bd44650

Wst Parser: Yet another attempt to fix the order of the Q ranges (made by S. Teichmann)
author Tom Gottfried <tom.gottfried@intevation.de>
date Wed, 03 Apr 2013 21:02:17 +0200
parents 7fdddc6ba296
children
line wrap: on
line source
package de.intevation.flys.importer.parsers.tim;

import java.util.Comparator;

public class LexiComparator implements Comparator<Coordinate> {

    public static final LexiComparator CMP = new LexiComparator();

    @Override
    public int compare(Coordinate a, Coordinate b) {
        if (a.x < b.x) return -1;
        if (a.x > b.x) return +1;
        if (a.y < b.y) return -1;
        if (a.y > b.y) return +1;
        return 0;
    }
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org