|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.util.collect.ForwardingObject org.elasticsearch.util.collect.ForwardingIterator<T>
public abstract class ForwardingIterator<T>
An iterator which forwards all its method calls to another iterator. Subclasses should override one or more methods to modify the behavior of the backing iterator as desired per the decorator pattern.
ForwardingObject
Constructor Summary | |
---|---|
ForwardingIterator()
|
Method Summary | |
---|---|
protected abstract java.util.Iterator<T> |
delegate()
Returns the backing delegate instance that methods are forwarded to. |
boolean |
hasNext()
|
T |
next()
|
void |
remove()
|
Methods inherited from class org.elasticsearch.util.collect.ForwardingObject |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ForwardingIterator()
Method Detail |
---|
protected abstract java.util.Iterator<T> delegate()
ForwardingObject
ForwardingSet.delegate()
. Concrete subclasses override this method to supply
the instance being decorated.
delegate
in class ForwardingObject
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public T next()
next
in interface java.util.Iterator<T>
public void remove()
remove
in interface java.util.Iterator<T>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |