public abstract class MultiConvertingLoopItemHandler<T,S> extends java.lang.Object implements LoopItemHandler<S>
| Modifier and Type | Field and Description |
|---|---|
protected Function1<? extends java.lang.Iterable<T>,? super S> |
typeConverter |
| Modifier | Constructor and Description |
|---|---|
protected |
MultiConvertingLoopItemHandler(Function1<? extends java.lang.Iterable<T>,? super S> typeConverter)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterFinish()
Called after the loop has finished.
|
void |
beforeStart()
Called before the loop is started.
|
boolean |
handle(S item)
Handle an item.
|
protected abstract boolean |
handleConverted(T converted,
S incoming)
Handle the converted item.
|
protected abstract boolean handleConverted(T converted, S incoming)
converted - converted itemincoming - incoming itemtrue go on with loopfalse break looppublic boolean handle(S item)
handle in interface LoopItemHandler<S>item - item to handletrue go on with loopfalse break looppublic void beforeStart()
beforeStart in interface LoopHandlerpublic void afterFinish()
afterFinish in interface LoopHandler