java.util.Iterator<T>
, java.util.ListIterator<T>
public final class EmptyIterator<T>
extends java.lang.Object
implements java.util.ListIterator<T>
Modifier and Type | Method | 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) |
public static <T> EmptyIterator<T> getInstance()
public boolean hasNext()
public T next()
public void remove()
public boolean hasPrevious()
hasPrevious
in interface java.util.ListIterator<T>
public int nextIndex()
nextIndex
in interface java.util.ListIterator<T>
public int previousIndex()
previousIndex
in interface java.util.ListIterator<T>
Copyright © 2004–2020. All rights reserved.