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>
Makes the wrapped
Iterator
serializable, else passing
Iterator
instances would cause an NotSerializableException
or
similar.- See Also:
-
Constructor Summary
ConstructorDescriptionInstantiates a new serializable iterator impl.SerializableIterator
(Iterator<T> aIterator) Instantiates a new serializable 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
-
SerializableIterator
public SerializableIterator()Instantiates a new serializable iterator impl. -
SerializableIterator
Instantiates a new serializable iterator impl.- Parameters:
aIterator
- the iterator
-
-
Method Details