public class CompactingHashTable.EntryIterator extends Object implements MutableObjectIterator<T>
If entries are inserted during iteration they may be overlooked by the iterator
Modifier and Type | Method and Description |
---|---|
T |
next()
Gets the next element from the collection.
|
T |
next(T reuse)
Gets the next element from the collection.
|
public T next(T reuse) throws IOException
MutableObjectIterator
next
in interface MutableObjectIterator<T>
reuse
- The target object into which to place next element if E is mutable.null
if the iterator is exhausted.IOException
- Thrown, if a problem occurred in the underlying I/O layer or in the
serialization / deserialization logicpublic T next() throws IOException
MutableObjectIterator
next
in interface MutableObjectIterator<T>
null
if the iterator is exhausted.IOException
- Thrown, if a problem occurred in the underlying I/O layer or in the
serialization / deserialization logicCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.