Package com.opencsv.bean
Class FieldMapByPositionEntry<T>
java.lang.Object
com.opencsv.bean.FieldMapByPositionEntry<T>
- Type Parameters:
T
- The type of the bean being converted
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 -
Constructor Summary
ConstructorsConstructorDescriptionFieldMapByPositionEntry
(int position, BeanField<T, Integer> field) Initializes this entry. -
Method Summary
-
Field Details
-
position
private final int positionThe position of the related field in the CSV input. -
field
TheBeanField
associated with this position.
-
-
Constructor Details
-
FieldMapByPositionEntry
Initializes this entry.- Parameters:
position
- The position from the CSV inputfield
- The field associated with this position
-
-
Method Details
-
getPosition
public int getPosition()- Returns:
- The column position with which this entry was initialized
-
getField
- Returns:
- The
BeanField
with which this entry was initialized
-