public class EmptyListIterator extends 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 and Description |
---|---|
static 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 |
---|---|
void |
add(Object obj) |
Object |
getKey() |
Object |
getValue() |
boolean |
hasNext() |
boolean |
hasPrevious() |
Object |
next() |
int |
nextIndex() |
Object |
previous() |
int |
previousIndex() |
void |
remove() |
void |
reset() |
void |
set(Object obj) |
Object |
setValue(Object value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reset
add, hasNext, hasPrevious, next, nextIndex, previous, previousIndex, remove, set
public static final ResettableListIterator RESETTABLE_INSTANCE
public static final ListIterator INSTANCE
public boolean hasNext()
public Object next()
public boolean hasPrevious()
public Object previous()
public int nextIndex()
public int previousIndex()
public void add(Object obj)
public void set(Object obj)
public void remove()
public Object getKey()
public Object getValue()
public void reset()
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.