- java.lang.Object
-
- org.refcodes.io.SerializableIterator<T>
-
- Type Parameters:
T- The type of the instances managed by theIterator.
- All Implemented Interfaces:
Serializable,Iterator<T>
public class SerializableIterator<T> extends Object implements Iterator<T>, Serializable
Makes the wrappedIteratorserializable, else passingIteratorinstances would cause anNotSerializableExceptionor similar.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SerializableIterator()Instantiates a new serializable iterator impl.SerializableIterator(Iterator<T> aIterator)Instantiates a new serializable iterator impl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Tnext()voidremove()-
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
-
-