java.lang.Object
org.simpleflatmapper.poi.impl.TransformRowMapper<I,O>
- All Implemented Interfaces:
org.simpleflatmapper.map.ContextualSourceMapper<org.apache.poi.ss.usermodel.Row,,O> org.simpleflatmapper.map.EnumerableMapper<org.apache.poi.ss.usermodel.Sheet,,O, RuntimeException> org.simpleflatmapper.map.SetRowMapper<org.apache.poi.ss.usermodel.Row,,org.apache.poi.ss.usermodel.Sheet, O, RuntimeException> org.simpleflatmapper.map.SourceMapper<org.apache.poi.ss.usermodel.Row,,O> RowMapper<O>,SheetMapper<O>
-
Constructor Summary
ConstructorsConstructorDescriptionTransformRowMapper(RowMapper<I> delegate, org.simpleflatmapper.util.Function<I, O> transform) -
Method Summary
Modifier and TypeMethodDescriptionorg.simpleflatmapper.util.Enumerable<O>enumerate(int startRow, org.apache.poi.ss.usermodel.Sheet sheet) org.simpleflatmapper.util.Enumerable<O>enumerate(org.apache.poi.ss.usermodel.Sheet sheet) <RH extends org.simpleflatmapper.util.CheckedConsumer<? super O>>
RHforEach(int startRow, org.apache.poi.ss.usermodel.Sheet sheet, RH consumer) <RH extends org.simpleflatmapper.util.CheckedConsumer<? super O>>
RHforEach(org.apache.poi.ss.usermodel.Sheet sheet, RH consumer) iterator(int startRow, org.apache.poi.ss.usermodel.Sheet sheet) iterator(org.apache.poi.ss.usermodel.Sheet sheet) map(org.apache.poi.ss.usermodel.Row source) map(org.apache.poi.ss.usermodel.Row source, org.simpleflatmapper.map.MappingContext<? super org.apache.poi.ss.usermodel.Row> context) stream(int startRow, org.apache.poi.ss.usermodel.Sheet sheet) stream(org.apache.poi.ss.usermodel.Sheet sheet)
-
Constructor Details
-
TransformRowMapper
-
-
Method Details
-
map
public O map(org.apache.poi.ss.usermodel.Row source) throws org.simpleflatmapper.map.MappingException -
map
public O map(org.apache.poi.ss.usermodel.Row source, org.simpleflatmapper.map.MappingContext<? super org.apache.poi.ss.usermodel.Row> context) throws org.simpleflatmapper.map.MappingException -
iterator
- Specified by:
iteratorin interfaceorg.simpleflatmapper.map.EnumerableMapper<org.apache.poi.ss.usermodel.Sheet,O, RuntimeException> - Specified by:
iteratorin interfaceSheetMapper<I>- Parameters:
sheet- the sheet to map from- Returns:
- an iterator of mapped newInstance of T
-
iterator
- Specified by:
iteratorin interfaceSheetMapper<I>- Parameters:
startRow- row index to start atsheet- the sheet to map from- Returns:
- an iterator of mapped newInstance of T
-
enumerate
- Specified by:
enumeratein interfaceorg.simpleflatmapper.map.EnumerableMapper<org.apache.poi.ss.usermodel.Sheet,O, RuntimeException> - Specified by:
enumeratein interfaceSheetMapper<I>- Parameters:
sheet- the sheet to map from- Returns:
- an iterator of mapped newInstance of T
-
enumerate
public org.simpleflatmapper.util.Enumerable<O> enumerate(int startRow, org.apache.poi.ss.usermodel.Sheet sheet) - Specified by:
enumeratein interfaceSheetMapper<I>- Parameters:
startRow- row index to start atsheet- the sheet to map from- Returns:
- an iterator of mapped newInstance of T
-
forEach
public <RH extends org.simpleflatmapper.util.CheckedConsumer<? super O>> RH forEach(org.apache.poi.ss.usermodel.Sheet sheet, RH consumer) - Specified by:
forEachin interfaceorg.simpleflatmapper.map.EnumerableMapper<org.apache.poi.ss.usermodel.Sheet,O, RuntimeException> - Specified by:
forEachin interfaceSheetMapper<I>- Type Parameters:
RH- the type of the handler- Parameters:
sheet- the sheet to map fromconsumer- the handler to call back- Returns:
- the handler
-
forEach
public <RH extends org.simpleflatmapper.util.CheckedConsumer<? super O>> RH forEach(int startRow, org.apache.poi.ss.usermodel.Sheet sheet, RH consumer) - Specified by:
forEachin interfaceSheetMapper<I>- Type Parameters:
RH- the type of the handler- Parameters:
startRow- row index to start atsheet- the sheet to map fromconsumer- the handler to call back- Returns:
- the handler
-
stream
- Specified by:
streamin interfaceorg.simpleflatmapper.map.EnumerableMapper<org.apache.poi.ss.usermodel.Sheet,O, RuntimeException> - Specified by:
streamin interfaceSheetMapper<I>- Parameters:
sheet- the sheet to map from- Returns:
- a stream on mapped newInstance of T
-
stream
- Specified by:
streamin interfaceSheetMapper<I>- Parameters:
startRow- row index to start atsheet- the sheet to map from- Returns:
- a stream on mapped newInstance of T
-