public final class StreamUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <C> Stream<C> |
stream(Collection<C> value)
Creates a stream on the given collection if it is not null
|
static <K,V> Stream<Map.Entry<K,V>> |
stream(Map<K,V> value)
Creates a stream of entries on the given Map if it is not null
|
public static <C> Stream<C> stream(Collection<C> value)
value
- the collectionApache Camel