|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.common.util.AbstractFilterIterator
An implementation of Iterator, that allows to filter the
returned elements by implementing the abstract method
accept(Object).
| Constructor Summary | |
AbstractFilterIterator(java.util.Iterator iterator)
Creates a new AbstractFilterIterator based upon the given
Iterator. |
|
| Method Summary | |
abstract boolean |
accept(java.lang.Object next)
Returns true, if the given object will be accepted to be
returned by next(). |
java.util.Iterator |
getIterator()
Returns the original Iterator. |
boolean |
hasNext()
|
java.lang.Object |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractFilterIterator(java.util.Iterator iterator)
AbstractFilterIterator based upon the given
Iterator.
iterator - the original Iterator to use.| Method Detail |
public abstract boolean accept(java.lang.Object next)
true, if the given object will be accepted to be
returned by next().
next - the object to be checked for acceptance
true, if the given object will be accepted to be
returned by next().public java.util.Iterator getIterator()
Iterator.
Iterator.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 | ||||||||||