public class EmptyIterator extends java.lang.Object implements ResettableIterator
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.
|
static ResettableIterator |
RESETTABLE_INSTANCE
Singleton instance of the iterator.
|
Modifier and Type | Method and 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) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reset
public static final ResettableIterator RESETTABLE_INSTANCE
public static final java.util.Iterator 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 © 2010 - 2020 Adobe. All Rights Reserved