Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/BedHeightSingle.java @ 3952:5d8db3349b77
Backend: Code simplification. Removed trailing whietspace.
flys-backend/trunk@5605 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 27 Sep 2012 08:08:38 +0000 |
parents | b9a99fcc78c3 |
children |
comparison
equal
deleted
inserted
replaced
3951:89ada0b9083f | 3952:5d8db3349b77 |
---|---|
239 // TODO Do km range filtering in SQL statement | 239 // TODO Do km range filtering in SQL statement |
240 | 240 |
241 List<BedHeightSingle> singles = query.list(); | 241 List<BedHeightSingle> singles = query.list(); |
242 List<BedHeightSingle> good = new ArrayList<BedHeightSingle>(); | 242 List<BedHeightSingle> good = new ArrayList<BedHeightSingle>(); |
243 | 243 |
244 OUTER: for (BedHeightSingle s: singles) { | 244 for (BedHeightSingle s: singles) { |
245 for (BedHeightSingleValue value: s.getValues()) { | 245 for (BedHeightSingleValue value: s.getValues()) { |
246 double station = value.getStation().doubleValue(); | 246 double station = value.getStation().doubleValue(); |
247 | 247 |
248 if (station >= kmLo && station <= kmHi) { | 248 if (station >= kmLo && station <= kmHi) { |
249 good.add(s); | 249 good.add(s); |
250 continue OUTER; | 250 break; |
251 } | 251 } |
252 } | 252 } |
253 } | 253 } |
254 | 254 |
255 return good; | 255 return good; |