Class FieldMapByPositionEntry<T>

java.lang.Object
com.opencsv.bean.FieldMapByPositionEntry<T>
Type Parameters:
T - The type of the bean being converted

public class FieldMapByPositionEntry<T> extends 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 Details

    • position

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

      private final BeanField<T,Integer> field
      The BeanField associated with this position.
  • Constructor Details

    • FieldMapByPositionEntry

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

    • getPosition

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

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