|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.kafka.common.utils.AbstractIterator<T>
T - The type of thing we are iterating overpublic abstract class AbstractIterator<T>
A base class that simplifies implementing an iterator
| Constructor Summary | |
|---|---|
AbstractIterator()
|
|
| Method Summary | |
|---|---|
protected T |
allDone()
|
boolean |
hasNext()
|
protected abstract T |
makeNext()
|
T |
next()
|
T |
peek()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractIterator()
| Method Detail |
|---|
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>public T peek()
protected T allDone()
protected abstract T makeNext()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||