Package org.refcodes.io
Class SerializableListIteratorImpl<T>
- java.lang.Object
-
- org.refcodes.io.SerializableListIteratorImpl<T>
-
- Type Parameters:
T
- The type of the instances managed by theListIterator
.
- All Implemented Interfaces:
java.io.Serializable
,java.util.Iterator<T>
,java.util.ListIterator<T>
public class SerializableListIteratorImpl<T> extends java.lang.Object implements java.util.ListIterator<T>, java.io.Serializable
Makes the wrappedListIterator
serializable, else passingListIterator
instances would cause anNotSerializableException
or similar. Use theSerializeUtility.toSerializable(Object)
to let you help to get serializable instances.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SerializableListIteratorImpl()
Instantiates a new serializable list iterator impl.SerializableListIteratorImpl(java.util.ListIterator<T> aListIterator)
Instantiates a new serializable list iterator impl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(T value)
boolean
hasNext()
boolean
hasPrevious()
T
next()
int
nextIndex()
T
previous()
int
previousIndex()
void
remove()
void
set(T value)
-
-
-
Constructor Detail
-
SerializableListIteratorImpl
public SerializableListIteratorImpl()
Instantiates a new serializable list iterator impl.
-
SerializableListIteratorImpl
public SerializableListIteratorImpl(java.util.ListIterator<T> aListIterator)
Instantiates a new serializable list iterator impl.- Parameters:
aListIterator
- the list iterator
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interfacejava.util.ListIterator<T>
-
next
public T next()
-
nextIndex
public int nextIndex()
- Specified by:
nextIndex
in interfacejava.util.ListIterator<T>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interfacejava.util.ListIterator<T>
-
remove
public void remove()
-
-