E
- The element type of the collection iterated over.@Internal public interface MutableObjectIterator<E>
Iterator
are
next()
, where one variant allows to pass an object that
may be reused, if the type is mutable.
next()
function, rather than splitting
it over two different functions such as hasNext()
and next()
Modifier and Type | Method and Description |
---|---|
E |
next()
Gets the next element from the collection.
|
E |
next(E reuse)
Gets the next element from the collection.
|
E next(E reuse) throws IOException
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 logicE next() throws IOException
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–2024 The Apache Software Foundation. All rights reserved.