diff artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/BedHeightStationComparator.java @ 8883:a536e1aacf0f

Further work on SINFO-FlowDepth
author gernotbelger
date Fri, 09 Feb 2018 18:07:22 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/BedHeightStationComparator.java	Fri Feb 09 18:07:22 2018 +0100
@@ -0,0 +1,27 @@
+/** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde
+ * Software engineering by
+ *  Björnsen Beratende Ingenieure GmbH
+ *  Dr. Schumacher Ingenieurbüro für Wasser und Umwelt
+ *
+ * This file is Free Software under the GNU AGPL (>=v3)
+ * and comes with ABSOLUTELY NO WARRANTY! Check out the
+ * documentation coming with Dive4Elements River for details.
+ */
+package org.dive4elements.river.artifacts.sinfo.flowdepth;
+
+import java.util.Comparator;
+
+import org.dive4elements.river.model.BedHeightValue;
+
+/**
+ * @author Gernot Belger
+ */
+public class BedHeightStationComparator implements Comparator<BedHeightValue> {
+
+    @Override
+    public int compare(final BedHeightValue o1, final BedHeightValue o2) {
+        final Double s1 = o1.getStation();
+        final Double s2 = o2.getStation();
+        return Double.compare(s1, s2);
+    }
+}
\ No newline at end of file

http://dive4elements.wald.intevation.org