public class RegularToMutableObjectIterator<T> extends Object implements MutableObjectIterator<T>
Constructor and Description |
---|
RegularToMutableObjectIterator(Iterator<T> iterator,
TypeSerializer<T> serializer) |
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 RegularToMutableObjectIterator(Iterator<T> iterator, TypeSerializer<T> serializer)
public T next(T reuse)
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.public T next()
MutableObjectIterator
next
in interface MutableObjectIterator<T>
null
if the iterator is exhausted.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.