public class EmptyListIterator<E> extends AbstractEmptyIterator<E> implements ResettableListIterator<E>
This class provides an implementation of an empty list iterator. This class
provides for binary compatibility between Commons Collections 2.1.1 and 3.1
due to issues with IteratorUtils
.
Modifier and Type | Field and Description |
---|---|
static java.util.ListIterator |
INSTANCE
Singleton instance of the iterator.
|
static ResettableListIterator |
RESETTABLE_INSTANCE
Singleton instance of the iterator.
|
Modifier | Constructor and Description |
---|---|
protected |
EmptyListIterator()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static <E> java.util.ListIterator<E> |
emptyListIterator()
Get a typed instance of the iterator.
|
static <E> ResettableListIterator<E> |
resettableEmptyListIterator()
Get a typed instance of the iterator.
|
add, hasNext, hasPrevious, next, nextIndex, previous, previousIndex, remove, reset, set
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, hasNext, hasPrevious, next, nextIndex, previous, previousIndex, remove, set
reset
hasPrevious, previous
public static final ResettableListIterator RESETTABLE_INSTANCE
public static final java.util.ListIterator INSTANCE
public static <E> ResettableListIterator<E> resettableEmptyListIterator()
E
- the element typeResettableListIterator
public static <E> java.util.ListIterator<E> emptyListIterator()
E
- the element typeListIterator