java.util.Iterator<E>
, java.util.ListIterator<E>
, OrderedIterator<E>
, ResettableIterator<E>
, ResettableListIterator<E>
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 | Description |
---|---|---|
static java.util.ListIterator |
INSTANCE |
Singleton instance of the iterator.
|
static ResettableListIterator |
RESETTABLE_INSTANCE |
Singleton instance of the iterator.
|
Modifier | Constructor | Description |
---|---|---|
protected |
EmptyListIterator() |
Constructor.
|
Modifier and Type | Method | 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) |
add, hasNext, hasPrevious, next, nextIndex, previous, previousIndex, remove, set
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasPrevious, previous
reset
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
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 © 2001-2019 - Apache Software Foundation