public class AllItemSelector<T> extends java.lang.Object implements ItemSelector<T,java.lang.String>
Modifier and Type | Field and Description |
---|---|
private boolean |
done |
Constructor and Description |
---|
AllItemSelector() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.String> |
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.
|
public boolean isSelectable(T item)
ItemSelector
isSelectable
in interface ItemSelector<T,java.lang.String>
public boolean isDone()
ItemSelector
isDone
in interface ItemSelector<T,java.lang.String>
public void select(T item)
ItemSelector
select
in interface ItemSelector<T,java.lang.String>
public java.util.Collection<java.lang.String> getPendings()
ItemSelector
getPendings
in interface ItemSelector<T,java.lang.String>
public boolean hasPendings()
ItemSelector
hasPendings
in interface ItemSelector<T,java.lang.String>