Iterator<T>, ListIterator<T>public class UnmodifiableListIteratorAdapter<T> extends Object implements ListIterator<T>
| Constructor | Description |
|---|---|
UnmodifiableListIteratorAdapter(ListIterator<T> iterator) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(T o) |
|
boolean |
hasNext() |
|
boolean |
hasPrevious() |
|
T |
next() |
|
int |
nextIndex() |
|
T |
previous() |
|
int |
previousIndex() |
|
void |
remove() |
|
void |
set(T o) |
forEachRemainingpublic UnmodifiableListIteratorAdapter(ListIterator<T> iterator)
public boolean hasNext()
public T next()
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 remove()
public void set(T o)
set in interface ListIterator<T>public void add(T o)
add in interface ListIterator<T>Copyright © 2004–2019. All rights reserved.