mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-352 Changed garbage-free Chronicle-Map iterations API from old to new Contexts; Add SegmentContexts API
This commit is contained in:
+2
-2
@@ -68,8 +68,8 @@ public class SimpleMapOperationsListeningTest {
|
||||
map.acquireUsing(3, value).addAtomicValue(1);
|
||||
IntValue value2 = DataValueClasses.newDirectInstance(IntValue.class);
|
||||
value2.setValue(5);
|
||||
map.forEachEntry(c -> c.put(value2));
|
||||
map.forEachEntry(c -> c.remove());
|
||||
map.forEachEntry(e -> e.context().replaceValue(e, e.context().wrapValueAsData(value2)));
|
||||
map.forEachEntry(e -> e.context().remove(e));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user