org.simpleflatmapper.csv.getter.CsvBoxedIntegerGetter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sfm-csv Show documentation
Show all versions of sfm-csv Show documentation
Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.
package org.simpleflatmapper.csv.getter;
import org.simpleflatmapper.converter.Context;
import org.simpleflatmapper.csv.CsvRow;
import org.simpleflatmapper.map.getter.ContextualGetter;
public class CsvBoxedIntegerGetter implements ContextualGetter {
public final int index;
public CsvBoxedIntegerGetter(int index) {
this.index = index;
}
@Override
public Integer get(CsvRow target, Context context) {
return target.getBoxedInt(index);
}
}