T
- element-type in streampublic class StreamableCollection<T> extends Object
Constructor and Description |
---|
StreamableCollection(Collection<T> collection)
Create for a particular collection
|
StreamableCollection(java.util.function.Supplier<java.util.stream.Stream<T>> supplier) |
Modifier and Type | Method and Description |
---|---|
java.util.stream.Stream<T> |
stream()
A single instance of the stream from the supplier.
|
public StreamableCollection(Collection<T> collection)
collection
- the collectionpublic StreamableCollection(java.util.function.Supplier<java.util.stream.Stream<T>> supplier)
public java.util.stream.Stream<T> stream()
Supplier.get()
for supplier
.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.