T - Type of items in the stream/collectionpublic class CollectionStream<T> extends AbstractStream<T>
Stream based on any Collection of items.| Constructor and Description |
|---|
CollectionStream(Collection<T> coll)
Construct with the given collection.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
T |
next() |
filter, forEach, forEach, forEach, iterator, map, map, parallelForEach, parallelForEach, remove, transformclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingforEach, spliteratorpublic CollectionStream(Collection<T> coll)
coll - the collection