Class FieldMapByPositionEntry<T>

  • Type Parameters:
    T - The type of the bean being converted

    public class FieldMapByPositionEntry<T>
    extends java.lang.Object
    Represents one entry in FieldMapByPosition. Note: This is not used in the internal structure of FieldMapByPosition, but rather when representing its contents to the outside world.
    Since:
    4.2
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private BeanField<T,​java.lang.Integer> field
      The BeanField associated with this position.
      private int position
      The position of the related field in the CSV input.
    • Field Detail

      • position

        private final int position
        The position of the related field in the CSV input.
      • field

        private final BeanField<T,​java.lang.Integer> field
        The BeanField associated with this position.
    • Constructor Detail

      • FieldMapByPositionEntry

        public FieldMapByPositionEntry​(int position,
                                       BeanField<T,​java.lang.Integer> field)
        Initializes this entry.
        Parameters:
        position - The position from the CSV input
        field - The field associated with this position
    • Method Detail

      • getPosition

        public int getPosition()
        Returns:
        The column position with which this entry was initialized
      • getField

        public BeanField<T,​java.lang.Integer> getField()
        Returns:
        The BeanField with which this entry was initialized