Package org.cactoos.list
Class ListIteratorNoNulls<T>
- java.lang.Object
-
- org.cactoos.list.ListIteratorNoNulls<T>
-
- Type Parameters:
T
- Element type
- All Implemented Interfaces:
Iterator<T>
,ListIterator<T>
public final class ListIteratorNoNulls<T> extends Object implements ListIterator<T>
A decorator ofListIterator
that tolerates no NULLs.There is no thread-safety guarantee.
- Since:
- 0.39
-
-
Constructor Summary
Constructors Constructor Description ListIteratorNoNulls(ListIterator<T> src)
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
-
ListIteratorNoNulls
public ListIteratorNoNulls(ListIterator<T> src)
Ctor.- Parameters:
src
- List iterator.
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
next
public T next()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interfaceListIterator<T>
-
previous
public T previous()
- Specified by:
previous
in interfaceListIterator<T>
-
nextIndex
public int nextIndex()
- Specified by:
nextIndex
in interfaceListIterator<T>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interfaceListIterator<T>
-
remove
public void remove()
-
set
public void set(T item)
- Specified by:
set
in interfaceListIterator<T>
-
add
public void add(T item)
- Specified by:
add
in interfaceListIterator<T>
-
-