Class SingletonMapConverter

  • All Implemented Interfaces:
    Converter, ConverterMatcher

    public class SingletonMapConverter
    extends MapConverter
    Converts a singleton map to XML, specifying an 'entry' element with 'key' and 'value' children.

    Note: 'key' and 'value' is not the name of the generated tag. The children are serialized as normal elements and the implementation expects them in the order 'key'/'value'.

    Supports Collections.singletonMap.

    Since:
    1.4.2
    • Field Detail

      • MAP

        private static final java.lang.Class MAP
    • Constructor Detail

      • SingletonMapConverter

        public SingletonMapConverter​(Mapper mapper)
        Construct a SingletonMapConverter.
        Parameters:
        mapper -
        Since:
        1.4.2