Class ConcurrentHashMapConverter
- java.lang.Object
-
- com.atlassian.bamboo.serialization.xstream.AbstractXStreamConverterAdapter
-
- com.atlassian.bamboo.serialization.xstream.ConcurrentHashMapConverter
-
- All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter
,com.thoughtworks.xstream.converters.ConverterMatcher
public class ConcurrentHashMapConverter extends AbstractXStreamConverterAdapter
Converts
ConcurrentHashMap
usingMapConverter
.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 Summary
Constructors Constructor Description ConcurrentHashMapConverter(com.thoughtworks.xstream.mapper.Mapper mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canConvert(Class type)
-
Methods inherited from class com.atlassian.bamboo.serialization.xstream.AbstractXStreamConverterAdapter
marshal, unmarshal
-
-
-
-
Method Detail
-
canConvert
public boolean canConvert(Class type)
-
-