Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/flowdepth/WstSoundingIdPair.java @ 9221:5c34fe17ef15
Exchanged left and right side for waterlevel/sounding selection
author | gernotbelger |
---|---|
date | Wed, 04 Jul 2018 12:00:57 +0200 |
parents | 5d5d482da3e9 |
children |
comparison
equal
deleted
inserted
replaced
9220:e3c2ae1887e8 | 9221:5c34fe17ef15 |
---|---|
43 final String datas[] = diffids.split("#"); | 43 final String datas[] = diffids.split("#"); |
44 | 44 |
45 final List<WstSoundingIdPair> diffPairs = new ArrayList<>(datas.length); | 45 final List<WstSoundingIdPair> diffPairs = new ArrayList<>(datas.length); |
46 | 46 |
47 for (int i = 0; i < datas.length; i += 2) { | 47 for (int i = 0; i < datas.length; i += 2) { |
48 final String leftId = StringUtil.unbracket(datas[i]); | 48 final String soundingId = StringUtil.unbracket(datas[i]); |
49 final String rightId = StringUtil.unbracket(datas[i + 1]); | 49 final String wstId = StringUtil.unbracket(datas[i + 1]); |
50 | 50 |
51 diffPairs.add(new WstSoundingIdPair(leftId, rightId)); | 51 diffPairs.add(new WstSoundingIdPair(wstId, soundingId)); |
52 } | 52 } |
53 | 53 |
54 return Collections.unmodifiableList(diffPairs); | 54 return Collections.unmodifiableList(diffPairs); |
55 } | 55 } |
56 } | 56 } |