java.util.Iterator<E>CharHashSet.EntryIterator, IntHashSet.EntryIterator, LongHashSet.EntryIterator, ObjectHashSet.EntryIterator, ShortHashSet.EntryIteratorpublic abstract class AbstractIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>
| Constructor | Description |
|---|---|
AbstractIterator() |
| Modifier and Type | Method | Description |
|---|---|---|
protected E |
done() |
Call when done.
|
protected abstract E |
fetch() |
Fetch next element.
|
boolean |
hasNext() |
|
E |
next() |
|
void |
remove() |
Default implementation throws
UnsupportedOperationException. |
public boolean hasNext()
hasNext in interface java.util.Iterator<E>public void remove()
UnsupportedOperationException.remove in interface java.util.Iterator<E>protected abstract E fetch()
done() when all
elements have been fetched.done().protected final E done()
Copyright © 2018 Carrot Search s.c.. All Rights Reserved.