Class AbstractFieldMap<I,​K extends java.lang.Comparable<K>,​C extends ComplexFieldMapEntry<I,​K,​T>,​T>

  • Type Parameters:
    I - The initializer type used to build the many-to-one mapping
    K - Type of the field identifier (key)
    C - Type of the ComplexFieldMapEntry used
    T - Type of the bean being converted
    All Implemented Interfaces:
    FieldMap<I,​K,​C,​T>
    Direct Known Subclasses:
    FieldMapByName, FieldMapByPosition

    public abstract class AbstractFieldMap<I,​K extends java.lang.Comparable<K>,​C extends ComplexFieldMapEntry<I,​K,​T>,​T>
    extends java.lang.Object
    implements FieldMap<I,​K,​C,​T>
    A base class to collect all generalized components of a FieldMap. May be used by all as a base class for their own implementations of FieldMap.
    Since:
    4.2
    Author:
    Andrew Rucker Jones
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<C> complexMapList
      A list of entries representing all complex, that is many-to-one, mappings represented in this FieldMap.
      protected java.util.Locale errorLocale
      The locale for error messages.
      protected java.util.SortedMap<K,​BeanField<T,​K>> simpleMap
      A map for all simple, that is one-to-one, mappings represented in this FieldMap.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractFieldMap​(java.util.Locale errorLocale)
      Initializes this FieldMap.
    • Field Detail

      • errorLocale

        protected java.util.Locale errorLocale
        The locale for error messages.
      • simpleMap

        protected final java.util.SortedMap<K extends java.lang.Comparable<K>,​BeanField<T,​K extends java.lang.Comparable<K>>> simpleMap
        A map for all simple, that is one-to-one, mappings represented in this FieldMap.
      • complexMapList

        protected final java.util.List<C extends ComplexFieldMapEntry<I,​K,​T>> complexMapList
        A list of entries representing all complex, that is many-to-one, mappings represented in this FieldMap.
    • Constructor Detail

      • AbstractFieldMap

        protected AbstractFieldMap​(java.util.Locale errorLocale)
        Initializes this FieldMap.
        Parameters:
        errorLocale - The locale to be used for error messages