Package org.apache.flink.runtime.util
Class EmptyMutableObjectIterator<E>
- java.lang.Object
-
- org.apache.flink.runtime.util.EmptyMutableObjectIterator<E>
-
- All Implemented Interfaces:
MutableObjectIterator<E>
public final class EmptyMutableObjectIterator<E> extends Object implements MutableObjectIterator<E>
An empty mutable object iterator that never returns anything.
-
-
Constructor Summary
Constructors Constructor Description EmptyMutableObjectIterator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <E> MutableObjectIterator<E>
get()
Gets a singleton instance of the empty iterator.E
next()
Always returns null.E
next(E target)
Always returns null.
-
-
-
Method Detail
-
get
public static <E> MutableObjectIterator<E> get()
Gets a singleton instance of the empty iterator.- Type Parameters:
E
- The type of the objects (not) returned by the iterator.- Returns:
- An instance of the iterator.
-
next
public E next(E target)
Always returns null.- Specified by:
next
in interfaceMutableObjectIterator<E>
- Parameters:
target
- The target object into which to place next element if E is mutable.- Returns:
- The filled object or
null
if the iterator is exhausted. - See Also:
MutableObjectIterator.next(Object)
-
next
public E next()
Always returns null.- Specified by:
next
in interfaceMutableObjectIterator<E>
- Returns:
- The object or
null
if the iterator is exhausted. - See Also:
MutableObjectIterator.next()
-
-