E
- the type to iterate.public class EmptyOrderedIterator<E> extends Object implements OrderedIterator<E>, ResettableIterator<E>
Modifier and Type | Field and Description |
---|---|
static OrderedIterator |
INSTANCE
Singleton instance of the iterator.
|
Modifier | Constructor and Description |
---|---|
protected |
EmptyOrderedIterator()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(E obj) |
static <E> OrderedIterator<E> |
emptyOrderedIterator()
Typed instance of the iterator.
|
boolean |
hasNext() |
boolean |
hasPrevious() |
E |
next() |
int |
nextIndex() |
E |
previous() |
int |
previousIndex() |
void |
remove() |
void |
reset() |
void |
set(E obj) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasPrevious, previous
reset
forEachRemaining, hasNext, next, remove
public static final OrderedIterator INSTANCE
public static <E> OrderedIterator<E> emptyOrderedIterator()
E
- the element typepublic 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 void reset()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.