public class EmptyIterator<E> extends Object implements ResettableIterator<E>
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(E obj) |
static <T> Iterator<T> |
getInstance() |
E |
getKey() |
E |
getValue() |
boolean |
hasNext() |
boolean |
hasPrevious() |
E |
next() |
int |
nextIndex() |
E |
previous() |
int |
previousIndex() |
void |
remove() |
void |
reset() |
void |
set(E obj) |
E |
setValue(E value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresetpublic static final ResettableIterator RESETTABLE_INSTANCE
public static final Iterator INSTANCE
public static <T> Iterator<T> getInstance()
public boolean hasNext()
public E next()
public boolean hasPrevious()
public E previous()
public int nextIndex()
public int previousIndex()
public void add(E obj)
public void set(E obj)
public void remove()
public E getKey()
public E getValue()
public E setValue(E value)
public void reset()
Copyright © 2014. All Rights Reserved.