Class AbstractFieldMapEntry<I,K extends Comparable<K>,T>

java.lang.Object
com.opencsv.bean.AbstractFieldMapEntry<I,K,T>
Type Parameters:
I - The initializer type used to build the many-to-one mapping
K - The type of the key used for indexing
T - The type of the bean being converted
All Implemented Interfaces:
ComplexFieldMapEntry<I,K,T>
Direct Known Subclasses:
PositionToBeanField, RegexToBeanField

public abstract class AbstractFieldMapEntry<I,K extends Comparable<K>,T> extends Object implements ComplexFieldMapEntry<I,K,T>
Collects common aspects of a ComplexFieldMapEntry.
Since:
4.2
  • Field Details

    • field

      protected final BeanField<T,K extends Comparable<K>> field
      The BeanField that is the target of this mapping.
    • errorLocale

      protected Locale errorLocale
      The locale to be used for error messages.
  • Constructor Details

    • AbstractFieldMapEntry

      protected AbstractFieldMapEntry(BeanField<T,K> field, Locale errorLocale)
      The only constructor, and it must be called by all derived classes.
      Parameters:
      field - The BeanField being mapped to
      errorLocale - The locale to be used for error messages
  • Method Details