public class FindAllIndexesHandler<T> extends java.lang.Object implements LoopItemHandler<T>
| Constructor and Description |
|---|
FindAllIndexesHandler(T object)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterFinish()
Called after the loop has finished.
|
void |
beforeStart()
Called before the loop is started.
|
java.util.List<OrderedPair<java.lang.Integer,T>> |
getFoundItems()
Get the found indexes and items.
|
T |
getSearchObject()
Get the looked up object.
|
boolean |
handle(T item)
Handle an item.
|
public boolean handle(T item)
handle in interface LoopItemHandler<T>item - item to handletrue go on with loopfalse break looppublic void beforeStart()
beforeStart in interface LoopHandlerpublic void afterFinish()
afterFinish in interface LoopHandlerpublic java.util.List<OrderedPair<java.lang.Integer,T>> getFoundItems()