public final class StreamUtils extends Object
| Constructor and Description |
|---|
StreamUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Stream<T> |
toStream(Collection<T> input) |
static <T> Stream<T> |
toStream(Iterable<T> input) |
static <T> Stream<T> |
toStream(Iterator<T> input) |
static Stream<Object> |
toStream(Object input) |
static <T> Stream<T> |
toStream(Spliterator<T> input) |
static <T> Stream<T> |
toStream(Stream<T> input) |
static <T> Stream<T> |
toStream(T... input) |
@SafeVarargs @Nonnull public static <T> Stream<T> toStream(@Nonnull T... input)
@Nonnull public static <T> Stream<T> toStream(@Nonnull Collection<T> input)
@Nonnull public static <T> Stream<T> toStream(@Nonnull Spliterator<T> input)
Copyright © 2017 echocat. All rights reserved.