Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/SoundingsSelect.java @ 3087:4a76da133144
Removed repeated x.size() calls from for loops.
flys-artifacts/trunk@4684 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 18 Jun 2012 09:16:05 +0000 |
parents | 4bd3d8bbb60c |
children | 200e70f31f6f |
comparison
equal
deleted
inserted
replaced
3086:ba7df29264cd | 3087:4a76da133144 |
---|---|
74 ) { | 74 ) { |
75 List<BedHeightSingle> singles = | 75 List<BedHeightSingle> singles = |
76 BedHeightSingle.getBedHeightSingles(river, kmLo, kmHi); | 76 BedHeightSingle.getBedHeightSingles(river, kmLo, kmHi); |
77 | 77 |
78 if (singles != null) { | 78 if (singles != null) { |
79 for (int i = 0; i < singles.size(); i++) { | 79 for (int i = 0, S = singles.size(); i < S; i++) { |
80 BedHeightSingle s = singles.get(i); | 80 BedHeightSingle s = singles.get(i); |
81 | 81 |
82 String id = PREFIX_SINGLE + s.getId(); | 82 String id = PREFIX_SINGLE + s.getId(); |
83 String value = s.getDescription(); | 83 String value = s.getDescription(); |
84 | 84 |
96 ) { | 96 ) { |
97 List<BedHeightEpoch> epochs = | 97 List<BedHeightEpoch> epochs = |
98 BedHeightEpoch.getBedHeightEpochs(river, kmLo, kmHi); | 98 BedHeightEpoch.getBedHeightEpochs(river, kmLo, kmHi); |
99 | 99 |
100 if (epochs != null) { | 100 if (epochs != null) { |
101 for (int i = 0; i < epochs.size(); i++) { | 101 for (int i = 0, E = epochs.size(); i < E; i++) { |
102 BedHeightEpoch e = epochs.get(i); | 102 BedHeightEpoch e = epochs.get(i); |
103 | 103 |
104 String id = PREFIX_EPOCH + e.getId(); | 104 String id = PREFIX_EPOCH + e.getId(); |
105 String value = e.getDescription(); | 105 String value = e.getDescription(); |
106 | 106 |