Package org.refcodes.io
Class SerializableIteratorImpl<T>
- java.lang.Object
-
- org.refcodes.io.SerializableIteratorImpl<T>
-
- Type Parameters:
T
- The type of the instances managed by theIterator
.
- All Implemented Interfaces:
Serializable
,Iterator<T>
public class SerializableIteratorImpl<T> extends Object implements Iterator<T>, Serializable
Makes the wrappedIterator
serializable, else passingIterator
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 SerializableIteratorImpl()
Instantiates a new serializable iterator impl.SerializableIteratorImpl(Iterator<T> aIterator)
Instantiates a new serializable iterator impl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
T
next()
void
remove()
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-