IN
- Input typeOUT
- Output typepublic abstract class AbstractFilteredIterator<IN,OUT extends IN> extends Object implements Iterator<OUT>
Modifier and Type | Field and Description |
---|---|
(package private) Iterator<IN> |
itr
The iterator to use.
|
(package private) OUT |
nextobj
The next object to return.
|
Constructor and Description |
---|
AbstractFilteredIterator()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Iterator<IN> |
getParentIterator()
Get an iterator for the actual data.
|
boolean |
hasNext() |
protected void |
init()
Init the iterators
|
OUT |
next() |
void |
remove() |
protected abstract OUT |
testFilter(IN nextobj)
Test the filter predicate for a new object.
|
private void |
updateNext()
Find the next visualizer.
|
protected void init()
protected abstract Iterator<IN> getParentIterator()
protected abstract OUT testFilter(IN nextobj)
nextobj
- Object to testnull
otherwiseprivate void updateNext()