@Immutable public final class EmptyIterator<T> extends Object implements ListIterator<T>
Modifier and Type | Method and Description |
---|---|
void |
add(T t) |
static <T> EmptyIterator<T> |
getInstance() |
boolean |
hasNext() |
boolean |
hasPrevious() |
T |
next() |
int |
nextIndex() |
T |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(T t) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public static <T> EmptyIterator<T> getInstance()
public boolean hasNext()
public T next()
public void remove()
public boolean hasPrevious()
hasPrevious
in interface ListIterator<T>
public T previous()
previous
in interface ListIterator<T>
public int nextIndex()
nextIndex
in interface ListIterator<T>
public int previousIndex()
previousIndex
in interface ListIterator<T>
public void set(T t)
set
in interface ListIterator<T>
public void add(T t)
add
in interface ListIterator<T>
Copyright © 2004–2016. All rights reserved.