java.lang.Object
org.refcodes.io.SerializableListIterator<T>
- Type Parameters:
T
- The type of the instances managed by theListIterator
.
- All Implemented Interfaces:
Serializable
,Iterator<T>
,ListIterator<T>
Makes the wrapped
ListIterator
serializable, else passing
ListIterator
instances would cause an
NotSerializableException
or similar.- See Also:
-
Constructor Summary
ConstructorDescriptionInstantiates a new serializable list iterator impl.SerializableListIterator
(ListIterator<T> aListIterator) Instantiates a new serializable list iterator impl. -
Method Summary
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 Details
-
SerializableListIterator
public SerializableListIterator()Instantiates a new serializable list iterator impl. -
SerializableListIterator
Instantiates a new serializable list iterator impl.- Parameters:
aListIterator
- the list iterator
-
-
Method Details
-
add
- Specified by:
add
in interfaceListIterator<T>
-
hasNext
public boolean hasNext() -
hasPrevious
public boolean hasPrevious()- Specified by:
hasPrevious
in interfaceListIterator<T>
-
next
-
nextIndex
public int nextIndex()- Specified by:
nextIndex
in interfaceListIterator<T>
-
previous
- Specified by:
previous
in interfaceListIterator<T>
-
previousIndex
public int previousIndex()- Specified by:
previousIndex
in interfaceListIterator<T>
-
remove
public void remove() -
set
- Specified by:
set
in interfaceListIterator<T>
-