Package org.cactoos.list
Class ListIteratorEnvelope<T>
- java.lang.Object
-
- org.cactoos.list.ListIteratorEnvelope<T>
-
- Type Parameters:
T
- Items type
- All Implemented Interfaces:
Iterator<T>
,ListIterator<T>
public abstract class ListIteratorEnvelope<T> extends Object implements ListIterator<T>
ListIterator
envelope.There is no thread-safety guarantee.
- Since:
- 0.47
-
-
Constructor Summary
Constructors Constructor Description ListIteratorEnvelope(ListIterator<T> iter)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(T item)
boolean
hasNext()
boolean
hasPrevious()
T
next()
int
nextIndex()
T
previous()
int
previousIndex()
void
remove()
void
set(T item)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
ListIteratorEnvelope
public ListIteratorEnvelope(ListIterator<T> iter)
Ctor.- Parameters:
iter
- Original list iterator.
-
-
Method Detail
-
hasNext
public final boolean hasNext()
-
next
public final T next()
-
hasPrevious
public final boolean hasPrevious()
- Specified by:
hasPrevious
in interfaceListIterator<T>
-
previous
public final T previous()
- Specified by:
previous
in interfaceListIterator<T>
-
nextIndex
public final int nextIndex()
- Specified by:
nextIndex
in interfaceListIterator<T>
-
previousIndex
public final int previousIndex()
- Specified by:
previousIndex
in interfaceListIterator<T>
-
remove
public final void remove()
-
set
public final void set(T item)
- Specified by:
set
in interfaceListIterator<T>
-
add
public final void add(T item)
- Specified by:
add
in interfaceListIterator<T>
-
-