use of org.simpleflatmapper.csv.CsvColumnKey in project SimpleFlatMapper by arnaudroger.
the class DynamicSheetMapper method getPoiMapper.
private SheetMapper<T> getPoiMapper(MapperKey<CsvColumnKey> key) {
SheetMapper<T> mapper = mapperCache.get(key);
if (mapper == null) {
final SheetMapperBuilder<T> builder = new SheetMapperBuilder<T>(classMeta, mapperConfig, getterFactory);
for (CsvColumnKey k : key.getColumns()) {
builder.addMapping(k, FieldMapperColumnDefinition.<CsvColumnKey>identity());
}
mapper = builder.mapper();
mapperCache.add(key, mapper);
}
return mapper;
}
Aggregations