|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vrspace.neurogrid.FilteredIterator
Utility iterator, wraps an Iterator usually retreived by Set operations, and a Filter applied to each set element on each iteration.
| Constructor Summary | |
FilteredIterator(java.util.Collection collection)
Creates FilteredIterator with no filter |
|
FilteredIterator(java.util.Collection collection,
Filter filter)
Creates FilteredIterator with user defined filter |
|
| Method Summary | |
boolean |
hasNext()
Does exist next element in the iterator that satisfies filter rule? |
java.lang.Object |
next()
Get next element that satisifies filter rule |
void |
remove()
Optional operation;) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FilteredIterator(java.util.Collection collection)
public FilteredIterator(java.util.Collection collection,
Filter filter)
| Method Detail |
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||