ALL_INCLUSIVE, SIZED| Modifier | Constructor and Description |
|---|---|
|
SimpleStreamer(Collection<T> coll)
Construct Streamer based on
Collection. |
|
SimpleStreamer(Iterable<T> iterable)
Construct Streamer based on
Iterable. |
|
SimpleStreamer(Iterator<T> iterator)
Construct Streamer based on
Iterator. |
protected |
SimpleStreamer(Iterator<T> iterator, long cSize, int nCharacteristics)
Construct Streamer instance.
|
|
SimpleStreamer(Stream<T> stream)
Construct Streamer based on
Stream. |
| Modifier and Type | Method and Description |
|---|---|
int |
characteristics()
A bit mask representing the set of characteristics of this
Streamer. |
boolean |
hasNext() |
T |
next() |
long |
size()
Return the exact size of the data set this
Streamer will iterate over, or negative integer if the exact size is unknown. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAllInclusive, isSized, remove, spliterator, streamforEachRemainingpublic SimpleStreamer(Iterable<T> iterable)
Iterable.iterable - an Iterable to create Streamer frompublic SimpleStreamer(Iterator<T> iterator)
Iterator.iterator - an Iterator to create Streamer frompublic SimpleStreamer(Stream<T> stream)
Stream.stream - a Stream to create Streamer frompublic SimpleStreamer(Collection<T> coll)
Collection.coll - a Collection to create Streamer fromprotected SimpleStreamer(Iterator<T> iterator, long cSize, int nCharacteristics)
iterator - an Iterator to create Streamer fromcSize - the number of elements this Streamer will iterate overnCharacteristics - the bit mask representing this Streamer's characteristicspublic long size()
StreamerStreamer will iterate over, or negative integer if the exact size is unknown.public int characteristics()
StreamerStreamer.characteristics in interface Streamer<T>Streamer