StreamSupport

Class StreamSupport

public final class StreamSupport
extends Object

Low-level utility methods for creating and manipulating streams.

This class is mostly for library writers presenting stream views of data structures; most static stream methods intended for end users are in the various Stream classes.

Since:
1.8

Methods

stream

public static <T> Stream<T> stream(Spliterator<T> spliterator,
                                   boolean parallel)

Creates a new sequential or parallel Stream from a Spliterator登录查看完整内容