|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.3.0) E17493-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ide.util.IteratorFilter
public abstract class IteratorFilter
This class filters elements out of a base Iterator.
Constructor Summary | |
---|---|
IteratorFilter(java.util.Iterator baseIterator) |
Method Summary | |
---|---|
boolean |
hasNext() |
protected abstract boolean |
isValid(java.lang.Object o) |
java.lang.Object |
next() |
void |
remove() Due to the filter mechanism, the remove() method will throw an IllegalStateException if hasNext() has been called after next(). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IteratorFilter(java.util.Iterator baseIterator)
Method Detail |
---|
protected abstract boolean isValid(java.lang.Object o)
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
Iterator i = new IteratorFilter(baseIterator); i.next(); i.hasNext(); i.remove(); // <== IllegalStateException because hasNext() has moved the // current pointer on the baseIterator.
remove
in interface java.util.Iterator
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.3.0) E17493-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |