Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/utils/KMIndex.java @ 7215:9cd3ff139601
Doc.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 30 Sep 2013 17:41:15 +0200 |
parents | af13ceeba52a |
children | 39ce099a6551 |
comparison
equal
deleted
inserted
replaced
7214:8817bb81cf27 | 7215:9cd3ff139601 |
---|---|
78 | 78 |
79 public void sort() { | 79 public void sort() { |
80 Collections.sort(entries); | 80 Collections.sort(entries); |
81 } | 81 } |
82 | 82 |
83 /** Return the first entry at km. */ | |
83 public Entry<A> search(double km) { | 84 public Entry<A> search(double km) { |
84 for (Entry<A> entry: entries) { | 85 for (Entry<A> entry: entries) { |
85 if (entry.epsilonEquals(km)) { | 86 if (entry.epsilonEquals(km)) { |
86 return entry; | 87 return entry; |
87 } | 88 } |