java.util.Iterator
, java.util.ListIterator
, ResettableIterator
, ResettableListIterator
public class EmptyListIterator extends java.lang.Object implements ResettableListIterator
This class provides an implementation of an empty list iterator.
This class provides for binary compatability 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(java.lang.Object obj) |
|
java.lang.Object |
getKey() |
|
java.lang.Object |
getValue() |
|
boolean |
hasNext() |
|
boolean |
hasPrevious() |
|
java.lang.Object |
next() |
|
int |
nextIndex() |
|
java.lang.Object |
previous() |
|
int |
previousIndex() |
|
void |
remove() |
|
void |
reset() |
|
void |
set(java.lang.Object obj) |
|
java.lang.Object |
setValue(java.lang.Object value) |
add, hasNext, hasPrevious, next, nextIndex, previous, previousIndex, remove, set
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reset
public static final ResettableListIterator RESETTABLE_INSTANCE
public static final java.util.ListIterator INSTANCE
public boolean hasNext()
public java.lang.Object next()
public boolean hasPrevious()
public java.lang.Object previous()
public int nextIndex()
public int previousIndex()
public void add(java.lang.Object obj)
public void set(java.lang.Object obj)
public void remove()
public java.lang.Object getKey()
public java.lang.Object getValue()
public java.lang.Object setValue(java.lang.Object value)
public void reset()
Copyright © 2001-2017 Apache Software Foundation. All Rights Reserved.