Class EmptyMutableObjectIterator<E>

java.lang.Object
org.apache.flink.runtime.util.EmptyMutableObjectIterator<E>
All Implemented Interfaces:
org.apache.flink.util.MutableObjectIterator<E>

public final class EmptyMutableObjectIterator<E> extends Object implements org.apache.flink.util.MutableObjectIterator<E>
An empty mutable object iterator that never returns anything.
  • Constructor Details

    • EmptyMutableObjectIterator

      public EmptyMutableObjectIterator()
  • Method Details

    • get

      public static <E> org.apache.flink.util.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 interface org.apache.flink.util.MutableObjectIterator<E>
      See Also:
      • MutableObjectIterator.next(Object)
    • next

      public E next()
      Always returns null.
      Specified by:
      next in interface org.apache.flink.util.MutableObjectIterator<E>
      See Also:
      • MutableObjectIterator.next()