Class AutoConvertingMap<K,​V>

  • All Implemented Interfaces:
    Map<K,​V>

    @XStreamConverter(AutoConvertingMapXStreamConverter.class)
    public class AutoConvertingMap<K,​V>
    extends DelegateMap<K,​V>

    A map that can auto convert the key from one type to the expected type.

    For example, if you have a map that is Map\ but people are using Integer keys you can use this to convert the Integer key to a String key.