public final class EmptyMutableObjectIterator<E> extends Object implements MutableObjectIterator<E>
Constructor and Description |
---|
EmptyMutableObjectIterator() |
Modifier and Type | Method and 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.
|
public static <E> MutableObjectIterator<E> get()
E
- The type of the objects (not) returned by the iterator.public E next(E target)
next
in interface MutableObjectIterator<E>
target
- The target object into which to place next element if E is mutable.null
if the iterator is exhausted.MutableObjectIterator.next(Object)
public E next()
next
in interface MutableObjectIterator<E>
null
if the iterator is exhausted.MutableObjectIterator.next()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.