Module org.simpleflatmapper.poi
Package org.simpleflatmapper.poi.impl
Class UnorderedJoinSheetMapper<T>
java.lang.Object
org.simpleflatmapper.poi.impl.UnorderedJoinSheetMapper<T>
- All Implemented Interfaces:
org.simpleflatmapper.map.ContextualSourceMapper<org.apache.poi.ss.usermodel.Row,,T> org.simpleflatmapper.map.EnumerableMapper<org.apache.poi.ss.usermodel.Sheet,,T, RuntimeException> org.simpleflatmapper.map.SetRowMapper<org.apache.poi.ss.usermodel.Row,,org.apache.poi.ss.usermodel.Sheet, T, RuntimeException> org.simpleflatmapper.map.SourceMapper<org.apache.poi.ss.usermodel.Row,,T> RowMapper<T>,SheetMapper<T>
-
Constructor Summary
ConstructorsConstructorDescriptionUnorderedJoinSheetMapper(org.simpleflatmapper.map.ContextualSourceFieldMapper<org.apache.poi.ss.usermodel.Row, T> mapper, org.simpleflatmapper.map.ConsumerErrorHandler consumerErrorHandler, org.simpleflatmapper.map.context.MappingContextFactory<? super org.apache.poi.ss.usermodel.Row> mappingContextFactory) -
Method Summary
Modifier and TypeMethodDescriptionorg.simpleflatmapper.util.Enumerable<T>enumerate(int startRow, org.apache.poi.ss.usermodel.Sheet sheet) org.simpleflatmapper.util.Enumerable<T>enumerate(org.apache.poi.ss.usermodel.Sheet sheet) <RH extends org.simpleflatmapper.util.CheckedConsumer<? super T>>
RHforEach(int startRow, org.apache.poi.ss.usermodel.Sheet sheet, RH consumer) <RH extends org.simpleflatmapper.util.CheckedConsumer<? super T>>
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
-
UnorderedJoinSheetMapper
public UnorderedJoinSheetMapper(org.simpleflatmapper.map.ContextualSourceFieldMapper<org.apache.poi.ss.usermodel.Row, T> mapper, org.simpleflatmapper.map.ConsumerErrorHandler consumerErrorHandler, org.simpleflatmapper.map.context.MappingContextFactory<? super org.apache.poi.ss.usermodel.Row> mappingContextFactory)
-
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceorg.simpleflatmapper.map.EnumerableMapper<org.apache.poi.ss.usermodel.Sheet,T, RuntimeException> - Specified by:
iteratorin interfaceSheetMapper<T>- Parameters:
sheet- the sheet to map from- Returns:
- an iterator of mapped newInstance of T
-
iterator
- Specified by:
iteratorin interfaceSheetMapper<T>- 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,T, RuntimeException> - Specified by:
enumeratein interfaceSheetMapper<T>- Parameters:
sheet- the sheet to map from- Returns:
- an iterator of mapped newInstance of T
-
enumerate
public org.simpleflatmapper.util.Enumerable<T> enumerate(int startRow, org.apache.poi.ss.usermodel.Sheet sheet) - Specified by:
enumeratein interfaceSheetMapper<T>- 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 T>> RH forEach(org.apache.poi.ss.usermodel.Sheet sheet, RH consumer) - Specified by:
forEachin interfaceorg.simpleflatmapper.map.EnumerableMapper<org.apache.poi.ss.usermodel.Sheet,T, RuntimeException> - Specified by:
forEachin interfaceSheetMapper<T>- 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 T>> RH forEach(int startRow, org.apache.poi.ss.usermodel.Sheet sheet, RH consumer) - Specified by:
forEachin interfaceSheetMapper<T>- 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,T, RuntimeException> - Specified by:
streamin interfaceSheetMapper<T>- Parameters:
sheet- the sheet to map from- Returns:
- a stream on mapped newInstance of T
-
stream
- Specified by:
streamin interfaceSheetMapper<T>- Parameters:
startRow- row index to start atsheet- the sheet to map from- Returns:
- a stream on mapped newInstance of T
-
map
public T map(org.apache.poi.ss.usermodel.Row source) throws org.simpleflatmapper.map.MappingException - Specified by:
mapin interfaceorg.simpleflatmapper.map.ContextualSourceMapper<org.apache.poi.ss.usermodel.Row,T> - Throws:
org.simpleflatmapper.map.MappingException
-
map
public T 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 - Specified by:
mapin interfaceorg.simpleflatmapper.map.SourceMapper<org.apache.poi.ss.usermodel.Row,T> - Throws:
org.simpleflatmapper.map.MappingException
-