public class ImmutableMapConverter
extends com.thoughtworks.xstream.converters.collections.MapConverter
ConcurrentHashMap
should convert like a map, instead of via serialization.Constructor and Description |
---|
ImmutableMapConverter(com.thoughtworks.xstream.mapper.Mapper mapper,
com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider) |
ImmutableMapConverter(com.thoughtworks.xstream.XStream xs) |
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(Class type) |
protected Object |
createCollection(Class type) |
Object |
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context) |
marshal, populateMap, populateMap, putCurrentEntryIntoMap
public ImmutableMapConverter(com.thoughtworks.xstream.XStream xs)
public ImmutableMapConverter(com.thoughtworks.xstream.mapper.Mapper mapper, com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
public boolean canConvert(Class type)
canConvert
in interface com.thoughtworks.xstream.converters.ConverterMatcher
canConvert
in class com.thoughtworks.xstream.converters.collections.MapConverter
public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
unmarshal
in interface com.thoughtworks.xstream.converters.Converter
unmarshal
in class com.thoughtworks.xstream.converters.collections.MapConverter
Copyright © 2004–2021. All rights reserved.