public class ConcurrentHashMapConverter extends AbstractXStreamConverterAdapter
Converts ConcurrentHashMap
using
MapConverter
.
Using this converter means that we lose the original initial parameters: initialCapacity, loadFactor and concurrencyLevel. Given that 9x% of the time ConcurrentHashMap is created with default values of those parameters, it seems a reasonable trade-off for not having all the internals of CHM in the serialized XML.
Constructor and Description |
---|
ConcurrentHashMapConverter(com.thoughtworks.xstream.mapper.Mapper mapper) |
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(Class type) |
marshal, unmarshal
public ConcurrentHashMapConverter(com.thoughtworks.xstream.mapper.Mapper mapper)
public boolean canConvert(Class type)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.