|
||||||||||
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> de.lmu.ifi.dbs.elki.utilities.iterator.TypeFilterIterator<IN,OUT>
IN
- Input datatypeOUT
- Output datatypepublic class TypeFilterIterator<IN,OUT extends IN>
Iterator that filters results by type.
Field Summary | |
---|---|
private Class<? super OUT> |
filterClass
Class restriction |
private Iterator<IN> |
parent
Parent iterator |
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.iterator.AbstractFilteredIterator |
---|
itr, nextobj |
Constructor Summary | |
---|---|
TypeFilterIterator(Class<? super OUT> filterClass,
Iterable<IN> parent)
Constructor. |
|
TypeFilterIterator(Class<? super OUT> filterClass,
Iterator<IN> parent)
Constructor. |
Method Summary | |
---|---|
protected Iterator<IN> |
getParentIterator()
Get an iterator for the actual data. |
protected OUT |
testFilter(IN nextobj)
Test the filter predicate for a new object. |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.iterator.AbstractFilteredIterator |
---|
hasNext, init, next, remove |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Class<? super OUT extends IN> filterClass
private Iterator<IN> parent
Constructor Detail |
---|
public TypeFilterIterator(Class<? super OUT> filterClass, Iterable<IN> parent)
filterClass
- Filterparent
- Parent collectionpublic TypeFilterIterator(Class<? super OUT> filterClass, Iterator<IN> parent)
filterClass
- Filterparent
- Parent iteratorMethod Detail |
---|
protected Iterator<IN> getParentIterator()
AbstractFilteredIterator
getParentIterator
in class AbstractFilteredIterator<IN,OUT extends IN>
protected OUT testFilter(IN nextobj)
AbstractFilteredIterator
testFilter
in class AbstractFilteredIterator<IN,OUT extends IN>
nextobj
- Object to test
null
otherwise
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |