Package eu.bandm.tools.util.nonnull
Class NonNullList.NonNullListIterator<T>
java.lang.Object
eu.bandm.tools.util.nonnull.NonNullList.NonNullListIterator<T>
- Type Parameters:
T- the types of the elements.
- All Implemented Interfaces:
Iterator<T>,ListIterator<T>
- Enclosing interface:
NonNullList<T>
Auxiliary class, not accessible by the user, which intercepts
all modification to guarantee nullfree.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ListIterator<T> The object from JDK runtime which makes the real work. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
pIterator
The object from JDK runtime which makes the real work.
-
-
Constructor Details
-
NonNullListIterator
Sole constructor.- Parameters:
piter- the object from JDK runtime which makes the real work.- Throws:
NullPointerException- if the argument is null.
-
-
Method Details
-
add
- Specified by:
addin interfaceListIterator<T>
-
hasNext
public boolean hasNext() -
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceListIterator<T>
-
next
-
nextIndex
public int nextIndex()- Specified by:
nextIndexin interfaceListIterator<T>
-
previous
- Specified by:
previousin interfaceListIterator<T>
-
previousIndex
public int previousIndex()- Specified by:
previousIndexin interfaceListIterator<T>
-
remove
public void remove() -
set
- Specified by:
setin interfaceListIterator<T>
-