Class NamedCollectionConverter

  • All Implemented Interfaces:
    Converter, ConverterMatcher

    public class NamedCollectionConverter
    extends CollectionConverter
    A collection converter that uses predefined names for its items.

    To be used as local converter. Note, suppress the usage of the implicit type argument, if registered with annotation.

    Since:
    1.4.5
    • Field Detail

      • name

        private final java.lang.String name
      • type

        private final java.lang.Class type
    • Constructor Detail

      • NamedCollectionConverter

        public NamedCollectionConverter​(Mapper mapper,
                                        java.lang.String itemName,
                                        java.lang.Class itemType)
        Constructs a NamedCollectionConverter.
        Parameters:
        mapper - the mapper
        itemName - the name of the items
        itemType - the base type of the items
        Since:
        1.4.5
      • NamedCollectionConverter

        public NamedCollectionConverter​(java.lang.Class type,
                                        Mapper mapper,
                                        java.lang.String itemName,
                                        java.lang.Class itemType)
        Constructs a NamedCollectionConverter handling an explicit Collection type.
        Parameters:
        type - the Collection type to handle
        mapper - the mapper
        itemName - the name of the items
        itemType - the base type of the items
        Since:
        1.4.5