Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/fixings/FixReferenceEventsFacet.java @ 3610:66f539df4e8b
Issue 716.
FixA: Spilt reference and analysis period themes into one theme for each event.
flys-artifacts/trunk@5239 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 23 Aug 2012 08:49:37 +0000 |
parents | 8160e62bbb3a |
children | 26774405c884 |
comparison
equal
deleted
inserted
replaced
3609:a16837d73130 | 3610:66f539df4e8b |
---|---|
68 | 68 |
69 KMIndex<QWD []> kmQWs = result.getReferenced(); | 69 KMIndex<QWD []> kmQWs = result.getReferenced(); |
70 KMIndex.Entry<QWD []> kmQWsEntry = kmQWs.binarySearch(currentKm); | 70 KMIndex.Entry<QWD []> kmQWsEntry = kmQWs.binarySearch(currentKm); |
71 QWD[] qwds = null; | 71 QWD[] qwds = null; |
72 if (kmQWsEntry != null) { | 72 if (kmQWsEntry != null) { |
73 int ndx = index & 255; | |
73 qwds = kmQWsEntry.getValue(); | 74 qwds = kmQWsEntry.getValue(); |
75 for (int i = 0; i < qwds.length; i++) { | |
76 if (qwds[i].getIndex() == ndx) { | |
77 return qwds[i]; | |
78 } | |
79 } | |
80 return null; | |
74 } | 81 } |
75 return qwds; | 82 return null; |
76 } | 83 } |
77 else { | 84 else { |
78 logger.debug("Not an instance of FixationArtifact."); | 85 logger.debug("Not an instance of FixationArtifact."); |
79 return null; | 86 return null; |
80 } | 87 } |