Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/utils/KMIndex.java @ 8613:39ce099a6551
(issue1755) Add good defaults for bedquality distance selection
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 24 Mar 2015 18:17:23 +0100 |
parents | 9cd3ff139601 |
children | ddcd52d239cd |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/utils/KMIndex.java Tue Mar 24 15:22:16 2015 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/utils/KMIndex.java Tue Mar 24 18:17:23 2015 +0100 @@ -80,6 +80,14 @@ Collections.sort(entries); } + public int size() { + return entries.size(); + } + + public Entry<A> get(int idx) { + return entries.get(idx); + } + /** Return the first entry at km. */ public Entry<A> search(double km) { for (Entry<A> entry: entries) {