T
- Items typepublic abstract class ListIteratorEnvelope<T> extends Object implements ListIterator<T>
ListIterator
envelope.
There is no thread-safety guarantee.
Constructor and Description |
---|
ListIteratorEnvelope(ListIterator<T> iter)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(T item) |
boolean |
hasNext() |
boolean |
hasPrevious() |
T |
next() |
int |
nextIndex() |
T |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(T item) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public ListIteratorEnvelope(ListIterator<T> iter)
iter
- Original list iterator.public final boolean hasNext()
public final T next()
public final boolean hasPrevious()
hasPrevious
in interface ListIterator<T>
public final T previous()
previous
in interface ListIterator<T>
public final int nextIndex()
nextIndex
in interface ListIterator<T>
public final int previousIndex()
previousIndex
in interface ListIterator<T>
public final void remove()
public final void set(T item)
set
in interface ListIterator<T>
public final void add(T item)
add
in interface ListIterator<T>
Copyright © 2017–2022 Cactoos. All rights reserved.