BUG-4803: fix MutableOffsetMap's insertion order 25/31725/6
authorRobert Varga <rovarga@cisco.com>
Mon, 21 Dec 2015 17:06:55 +0000 (18:06 +0100)
committerTony Tkacik <ttkacik@cisco.com>
Mon, 4 Jan 2016 10:49:17 +0000 (10:49 +0000)
commit136f1755f17cfe70dfe854e9d886ac0eedf97c19
treef8969917a3c064642f1b1f540d38a7f8857ce911
parentf1091bd54afc0a9342bd468887efd22b41fffcc5
BUG-4803: fix MutableOffsetMap's insertion order

When a pairing backed by the array is removed, the order of pairings
would not follow the insertion order. This patch introduces an explicit
removal marker object and when the marker is present we defer to
newKeys map.

Change-Id: Ib27313e0df44754f5219d64126e0ec2a472a503f
Signed-off-by: Robert Varga <rovarga@cisco.com>
common/util/src/main/java/org/opendaylight/yangtools/util/MutableOffsetMap.java
common/util/src/test/java/org/opendaylight/yangtools/util/OffsetMapTest.java