public class SubsetIteratorFilter extends IteratorFilterSupport implements Iterator, Action
Modifier and Type | Class and Description |
---|---|
static interface |
SubsetIteratorFilter.Decider
A decider determines if the given element should be added to the list or not.
|
IteratorFilterSupport.EnumerationIterator
Constructor and Description |
---|
SubsetIteratorFilter() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
decide(Object element) |
String |
execute()
Where the logic of the action is executed.
|
boolean |
hasNext() |
Object |
next() |
void |
remove() |
void |
setCount(int aCount) |
void |
setDecider(SubsetIteratorFilter.Decider aDecider) |
void |
setSource(Object anIterator) |
void |
setStart(int aStart) |
getIterator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public void setCount(int aCount)
public void setSource(Object anIterator)
public void setStart(int aStart)
public void setDecider(SubsetIteratorFilter.Decider aDecider)
public String execute()
Action
protected boolean decide(Object element)
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.