[PATCH] Sorting rows is a prerequisite

Wald Commits scm-commit at wald.intevation.org
Tue Apr 7 12:10:49 CEST 2015


# HG changeset patch
# User "Tom Gottfried <tom at intevation.de>"
# Date 1428401445 -7200
# Node ID b78ca00d46597b245af0caad62c5594e3480abd9
# Parent  c9b8ad659d5b990f3e3c668f8d64ca8e540a693f
Sorting rows is a prerequisite.

diff -r c9b8ad659d5b -r b78ca00d4659 artifacts/src/main/java/org/dive4elements/river/artifacts/model/WstValueTable.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/WstValueTable.java	Tue Apr 07 11:20:36 2015 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/WstValueTable.java	Tue Apr 07 12:10:45 2015 +0200
@@ -549,6 +549,10 @@
         this.columns = columns;
     }
 
+    /**
+     * @param columns The WST-columns.
+     * @param rows A list of Rows that must be sorted by km.
+     */
     public WstValueTable(Column [] columns, List<Row> rows) {
         this.columns = columns;
         this.rows    = rows;
@@ -558,11 +562,6 @@
         return columns;
     }
 
-    /** Sort rows (by km). */
-    public void sortRows() {
-        Collections.sort(rows);
-    }
-
     /**
      * @param km Given kilometer.
      * @param qs Given Q values.


More information about the Dive4Elements-commits mailing list