public class EmptyOrderedIterator<E> extends java.lang.Object implements OrderedIterator<E>, ResettableIterator<E>
Modifier and Type | Field and Description |
---|---|
static OrderedIterator |
INSTANCE
Singleton instance of the iterator.
|
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) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasPrevious, previous
reset
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 © 2010 - 2020 Adobe. All Rights Reserved