public class CollectionStreams
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CollectionStreams.FlattenCollection<C extends java.util.Collection<T>,T>
Function that flattens a collection when passed to
TStream.multiTransform(Function). |
static class |
CollectionStreams.FlattenMap<M extends java.util.Map<K,V>,K,V> |
| Constructor and Description |
|---|
CollectionStreams() |
| Modifier and Type | Method and Description |
|---|---|
static <C extends java.util.Collection<T>,T> |
flatten(TStream<C> stream)
'
Flatten a stream containing collections into a stream containing
the individual elements.
|
static <M extends java.util.Map<K,V>,K,V> |
flattenMap(TStream<M> stream) |
public static <C extends java.util.Collection<T>,T> TStream<T> flatten(TStream<C> stream)
stream - Stream to be flattened.