Top Description Fields Constructors Methods
com.opencsv.bean

public Class FieldMapByPositionEntry<T>

extends Object
Class Inheritance
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.

Author
Andrew Rucker Jones
Since
4.2

Field Summary

Modifier and TypeField and Description
private final BeanField<T, Integer>
field

The BeanField associated with this position.

private final int
position

The position of the related field in the CSV input.

Constructor Summary

AccessConstructor and Description
public
FieldMapByPositionEntry(int
The position from the CSV input
position
,
BeanField<T, Integer>
The field associated with this position
field
)

Initializes this entry.

Method Summary

Modifier and TypeMethod and Description
public BeanField<T, Integer>
getField()

Returns: The BeanField with which this entry was initialized

public int
getPosition()

Returns: The column position with which this entry was initialized

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fieldback to summary
private final BeanField<T, Integer> field

The BeanField associated with this position.

positionback to summary
private final int position

The position of the related field in the CSV input.

Constructor Detail

FieldMapByPositionEntryback to summary
public FieldMapByPositionEntry(int position, BeanField<T, Integer> field)

Initializes this entry.

Parameters
position:int

The position from the CSV input

field:BeanField<T, Integer>

The field associated with this position

Method Detail

getFieldback to summary
public BeanField<T, Integer> getField()
Returns:BeanField<T, Integer>

The BeanField with which this entry was initialized

getPositionback to summary
public int getPosition()
Returns:int

The column position with which this entry was initialized