public interface ItemSelector<T,V>
Modifier and Type | Method and Description |
---|---|
java.util.Collection<V> |
getPendings()
getPendings returns a list of references to pending items.
|
boolean |
hasPendings()
hasPendings checks if ItemSelector has unconsumed elements in its lists.
|
boolean |
isDone()
isDone is used for premature end of iteration.
|
boolean |
isSelectable(T item)
isSelectable should be called for each element in list.
|
void |
select(T item)
select consumes an item.
|
boolean isSelectable(T item)
item
- boolean isDone()
void select(T item)
item
- boolean hasPendings()
java.util.Collection<V> getPendings()