|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.utilities.iterator.AbstractFilteredIterator<IN,OUT>
IN
- Input typeOUT
- Output typepublic abstract class AbstractFilteredIterator<IN,OUT extends IN>
Abstract class to build filtered views on Iterables.
Field Summary | |
---|---|
(package private) Iterator<IN> |
itr
The iterator to use. |
(package private) OUT |
nextobj
The next object to return. |
Constructor Summary | |
---|---|
AbstractFilteredIterator()
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Iterator<IN> itr
OUT extends IN nextobj
Constructor Detail |
---|
public AbstractFilteredIterator()
Method Detail |
---|
protected void init()
protected abstract Iterator<IN> getParentIterator()
protected abstract OUT testFilter(IN nextobj)
nextobj
- Object to test
null
otherwiseprivate void updateNext()
public boolean hasNext()
hasNext
in interface Iterator<OUT extends IN>
public OUT next()
next
in interface Iterator<OUT extends IN>
public void remove()
remove
in interface Iterator<OUT extends IN>
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |