8883
|
1 /** Copyright (C) 2017 by Bundesanstalt für Gewässerkunde |
|
2 * Software engineering by |
|
3 * Björnsen Beratende Ingenieure GmbH |
|
4 * Dr. Schumacher Ingenieurbüro für Wasser und Umwelt |
|
5 * |
|
6 * This file is Free Software under the GNU AGPL (>=v3) |
|
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the |
|
8 * documentation coming with Dive4Elements River for details. |
|
9 */ |
|
10 package org.dive4elements.river.artifacts.sinfo.flowdepth; |
|
11 |
|
12 import java.util.Comparator; |
|
13 |
|
14 import org.dive4elements.river.model.BedHeightValue; |
|
15 |
|
16 /** |
|
17 * @author Gernot Belger |
|
18 */ |
|
19 public class BedHeightStationComparator implements Comparator<BedHeightValue> { |
|
20 |
|
21 @Override |
|
22 public int compare(final BedHeightValue o1, final BedHeightValue o2) { |
|
23 final Double s1 = o1.getStation(); |
|
24 final Double s2 = o2.getStation(); |
|
25 return Double.compare(s1, s2); |
|
26 } |
|
27 } |