public class EmptyListIterator<E> extends java.lang.Object 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 and Type | Method and Description |
---|---|
void |
add(E obj) |
static <E> java.util.ListIterator<E> |
emptyListIterator()
Get a typed instance of the iterator.
|
boolean |
hasNext() |
boolean |
hasPrevious() |
E |
next() |
int |
nextIndex() |
E |
previous() |
int |
previousIndex() |
void |
remove() |
void |
reset() |
static <E> ResettableListIterator<E> |
resettableEmptyListIterator()
Get a typed instance of the iterator.
|
void |
set(E obj) |
equals, 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
<E>public static <E> java.util.ListIterator<E> emptyListIterator()
E
- the element typeListIterator
<E>public boolean hasNext()
public E next()
public boolean hasPrevious()
public E previous()
public int nextIndex()
public int previousIndex()
public void add(E obj)
public void set(E obj)
public void remove()
public void reset()
Copyright © 2010 - 2023 Adobe. All Rights Reserved