Top Description Constructors Methods
com.opencsv.bean

public Class BeanFieldJoinIntegerIndex<T>

extends BeanFieldJoin<T, Integer>
Class Inheritance
Type Parameters
<T>
The type of the bean being populated
Imports
org.apache.commons.collections4.MultiValuedMap, java.lang.reflect.Field, java.util.Locale

Implements a BeanFieldJoin with a java.lang.Integer for an index.
Author
Andrew Rucker Jones
Since
4.2

Constructor Summary

AccessConstructor and Description
public
BeanFieldJoinIntegerIndex(Class<?>
The type of the class in which this field is found. This is the type as instantiated by opencsv, and not necessarily the type in which the field is declared in the case of inheritance.
type
,
Field
The bean field this object represents
field
,
boolean
Whether or not a value is always required for this field
required
,
Locale
The locale to use for error messages
errorLocale
,
CsvConverter
The converter to be used for performing the data conversion on reading or writing
converter
,
Class<? extends MultiValuedMap<K, V>>
The type of the org.apache.commons.collections4.MultiValuedMap that should be instantiated for the bean field being populated
mapType
,
String capture, String
The format string used for packaging values to be written. If null or empty, it is ignored.
format
)

Creates a new instance.

Method Summary

Modifier and TypeMethod and Description
protected Object
putNewValue(MultiValuedMap<Integer, Object> map, String index, Object newValue)

Implements abstract com.opencsv.bean.BeanFieldJoin.putNewValue.

Puts the value given in newValue into map using index.

Inherited from com.opencsv.bean.BeanFieldJoin:
assignValueToFieldindexAndSplitMultivaluedFieldisFieldEmptyForWrite

Constructor Detail

BeanFieldJoinIntegerIndexback to summary
public BeanFieldJoinIntegerIndex(Class<?> type, Field field, boolean required, Locale errorLocale, CsvConverter converter, Class<? extends MultiValuedMap<K, V>> mapType, String capture, String format)

Creates a new instance.

Parameters
type:Class<?>

The type of the class in which this field is found. This is the type as instantiated by opencsv, and not necessarily the type in which the field is declared in the case of inheritance.

field:Field

The bean field this object represents

required:boolean

Whether or not a value is always required for this field

errorLocale:Locale

The locale to use for error messages

converter:CsvConverter

The converter to be used for performing the data conversion on reading or writing

mapType:Class<? extends MultiValuedMap<K, V>>

The type of the org.apache.commons.collections4.MultiValuedMap that should be instantiated for the bean field being populated

capture:String

See CsvBindAndJoinByName#capture()

format:String

The format string used for packaging values to be written. If null or empty, it is ignored.

Method Detail

putNewValueback to summary
protected Object putNewValue(MultiValuedMap<Integer, Object> map, String index, Object newValue)

Implements abstract com.opencsv.bean.BeanFieldJoin.putNewValue.

Doc from com.opencsv.bean.BeanFieldJoin.putNewValue.

Puts the value given in newValue into map using index. This allows derived classes to do something special before assigning the value, such as converting the index to a different type.

Annotations
@Override