public class ObjectStreamIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
Simple implementation of an Iterator that wraps a object stream’s data. This is suitable for use implementing BaseStream.iterator()
.
Constructor and Description |
---|
ObjectStreamIterator(ObjectStream<T> stream)
Construct a new iterator from a stream.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
T |
next() |
void |
remove() |
public ObjectStreamIterator(ObjectStream<T> stream)
Construct a new iterator from a stream.
stream
- The stream to wrap.