public final class Streams extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> java.util.stream.Stream<T> |
toParallelStream(Iterable<T> iterable)
|
static <T> java.util.stream.Stream<T> |
toParallelStream(Iterator<T> iterator)
|
static <T> java.util.stream.Stream<T> |
toParallelStream(T[] array)
Convert an array to a
Stream. |
static <T> java.util.stream.Stream<T> |
toStream(Iterable<T> iterable)
|
static <T> java.util.stream.Stream<T> |
toStream(Iterator<T> iterator)
|
static <T> java.util.stream.Stream<T> |
toStream(T[] array)
Convert an array to a
Stream. |
public static <T> java.util.stream.Stream<T> toStream(Iterable<T> iterable)
T - the type of object stored in the iterableiterable - the input iterablepublic static <T> java.util.stream.Stream<T> toStream(T[] array)
Stream.T - the type of object stored in the arrayarray - the input arraypublic static <T> java.util.stream.Stream<T> toStream(Iterator<T> iterator)
T - the type of object stored in the iteratoriterator - the input iteratorpublic static <T> java.util.stream.Stream<T> toParallelStream(Iterable<T> iterable)
T - the type of object stored in the iterableiterable - the input iterablepublic static <T> java.util.stream.Stream<T> toParallelStream(Iterator<T> iterator)
T - the type of object stored in the iteratoriterator - the input iteratorpublic static <T> java.util.stream.Stream<T> toParallelStream(T[] array)
Stream.T - the type of object stored in the arrayarray - the input arrayCopyright © 2021. All rights reserved.