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.SerializableMakes the wrappedListIteratorserializable, else passingListIteratorinstances would cause anNotSerializableExceptionor 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 voidadd(T value)booleanhasNext()booleanhasPrevious()Tnext()intnextIndex()Tprevious()intpreviousIndex()voidremove()voidset(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:
hasPreviousin interfacejava.util.ListIterator<T>
-
next
public T next()
-
nextIndex
public int nextIndex()
- Specified by:
nextIndexin interfacejava.util.ListIterator<T>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndexin interfacejava.util.ListIterator<T>
-
remove
public void remove()
-
-