public class TransformRowMapper<I,O> extends Object implements RowMapper<O>
Constructor and Description |
---|
TransformRowMapper(RowMapper<I> delegate,
org.simpleflatmapper.util.Function<I,O> transform) |
Modifier and Type | Method and Description |
---|---|
org.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>> |
forEach(int startRow,
org.apache.poi.ss.usermodel.Sheet sheet,
RH consumer) |
<RH extends org.simpleflatmapper.util.CheckedConsumer<? super O>> |
forEach(org.apache.poi.ss.usermodel.Sheet sheet,
RH consumer) |
Iterator<O> |
iterator(int startRow,
org.apache.poi.ss.usermodel.Sheet sheet) |
Iterator<O> |
iterator(org.apache.poi.ss.usermodel.Sheet sheet) |
O |
map(org.apache.poi.ss.usermodel.Row source) |
O |
map(org.apache.poi.ss.usermodel.Row source,
org.simpleflatmapper.map.MappingContext<? super org.apache.poi.ss.usermodel.Row> context) |
Stream<O> |
stream(int startRow,
org.apache.poi.ss.usermodel.Sheet sheet) |
Stream<O> |
stream(org.apache.poi.ss.usermodel.Sheet sheet) |
public O map(org.apache.poi.ss.usermodel.Row source) throws org.simpleflatmapper.map.MappingException
map
in interface org.simpleflatmapper.map.ContextualSourceMapper<org.apache.poi.ss.usermodel.Row,O>
org.simpleflatmapper.map.MappingException
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
map
in interface org.simpleflatmapper.map.SourceMapper<org.apache.poi.ss.usermodel.Row,O>
org.simpleflatmapper.map.MappingException
public Iterator<O> iterator(org.apache.poi.ss.usermodel.Sheet sheet)
iterator
in interface org.simpleflatmapper.map.EnumerableMapper<org.apache.poi.ss.usermodel.Sheet,O,RuntimeException>
iterator
in interface SheetMapper<O>
sheet
- the sheet to map frompublic Iterator<O> iterator(int startRow, org.apache.poi.ss.usermodel.Sheet sheet)
iterator
in interface SheetMapper<O>
startRow
- row index to start atsheet
- the sheet to map frompublic org.simpleflatmapper.util.Enumerable<O> enumerate(org.apache.poi.ss.usermodel.Sheet sheet)
enumerate
in interface org.simpleflatmapper.map.EnumerableMapper<org.apache.poi.ss.usermodel.Sheet,O,RuntimeException>
enumerate
in interface SheetMapper<O>
sheet
- the sheet to map frompublic org.simpleflatmapper.util.Enumerable<O> enumerate(int startRow, org.apache.poi.ss.usermodel.Sheet sheet)
enumerate
in interface SheetMapper<O>
startRow
- row index to start atsheet
- the sheet to map frompublic <RH extends org.simpleflatmapper.util.CheckedConsumer<? super O>> RH forEach(org.apache.poi.ss.usermodel.Sheet sheet, RH consumer)
forEach
in interface org.simpleflatmapper.map.EnumerableMapper<org.apache.poi.ss.usermodel.Sheet,O,RuntimeException>
forEach
in interface SheetMapper<O>
RH
- the type of the handlersheet
- the sheet to map fromconsumer
- the handler to call backpublic <RH extends org.simpleflatmapper.util.CheckedConsumer<? super O>> RH forEach(int startRow, org.apache.poi.ss.usermodel.Sheet sheet, RH consumer)
forEach
in interface SheetMapper<O>
RH
- the type of the handlerstartRow
- row index to start atsheet
- the sheet to map fromconsumer
- the handler to call backpublic Stream<O> stream(org.apache.poi.ss.usermodel.Sheet sheet)
stream
in interface org.simpleflatmapper.map.EnumerableMapper<org.apache.poi.ss.usermodel.Sheet,O,RuntimeException>
stream
in interface SheetMapper<O>
sheet
- the sheet to map frompublic Stream<O> stream(int startRow, org.apache.poi.ss.usermodel.Sheet sheet)
stream
in interface SheetMapper<O>
startRow
- row index to start atsheet
- the sheet to map fromCopyright © 2019. All rights reserved.