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:
@@ -36,15 +36,15 @@ public class VanillaChronicleMapConverter<K, V> extends AbstractChronicleMapConv
|
||||
@Override
|
||||
public void marshal(Object o, final HierarchicalStreamWriter writer, final MarshallingContext
|
||||
marshallingContext) {
|
||||
((ChronicleMap<K, V>) o).forEachEntry(c -> {
|
||||
((ChronicleMap<K, V>) o).forEachEntry(e -> {
|
||||
writer.startNode("entry");
|
||||
{
|
||||
final Object key = c.key();
|
||||
final Object key = e.key().get();
|
||||
writer.startNode(key.getClass().getName());
|
||||
marshallingContext.convertAnother(key);
|
||||
writer.endNode();
|
||||
|
||||
Object value = c.get();
|
||||
Object value = e.value().get();
|
||||
writer.startNode(value.getClass().getName());
|
||||
marshallingContext.convertAnother(value);
|
||||
writer.endNode();
|
||||
|
||||
Reference in New Issue
Block a user