public final class EmptyIterator
extends java.lang.Object
implements java.util.Iterator
This class provides an implementation of an empty 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 java.util.Iterator |
INSTANCE
Singleton instance of the iterator.
|
Modifier | Constructor and Description |
---|---|
protected |
EmptyIterator()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Object obj) |
boolean |
hasNext() |
boolean |
hasPrevious() |
java.lang.Object |
next() |
int |
nextIndex() |
java.lang.Object |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(java.lang.Object obj) |
public static final java.util.Iterator INSTANCE
public void add(java.lang.Object obj)
public boolean hasNext()
public boolean hasPrevious()
public java.lang.Object next()
public int nextIndex()
public java.lang.Object previous()
public int previousIndex()
public void remove()
public void set(java.lang.Object obj)
Copyright © 2001-2004 Apache Software Foundation. Documenation generated May 18 2012.