Class MapConverter<K,​V>

  • Type Parameters:
    K - the type of keys maintained by this map
    V - the type of mapped values
    All Implemented Interfaces:
    Converter<Map<K,​V>>

    public class MapConverter<K,​V>
    extends Object
    implements Converter<Map<K,​V>>
    A Converter for Map. This converter creates a clone of the original Map, and convert is called for keys and values.
    • Constructor Detail

      • MapConverter

        public MapConverter()
    • Method Detail

      • convert

        public Map<K,​V> convert​(Map<K,​V> map,
                                      Feature targetOwner)
                               throws IllegalAccessError
        Description copied from interface: Converter
        Converts an object owned by a Feature to another Feature.
        Specified by:
        convert in interface Converter<K>
        Parameters:
        map - the source object to be converted
        targetOwner - the owner of the converted object
        Returns:
        the converted object, owned by the target owner
        Throws:
        IllegalAccessError