public class EmptyIterator extends 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 Iterator |
INSTANCE
Singleton instance of the iterator.
|
static ResettableIterator |
RESETTABLE_INSTANCE
Singleton instance of the iterator.
|
Modifier | Constructor and Description |
---|---|
protected |
EmptyIterator()
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
public static final ResettableIterator RESETTABLE_INSTANCE
public static final Iterator 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.