File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/main/java/scala/compat/java8 Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 5
5
import java .util .stream .*;
6
6
import scala .compat .java8 .runtime .CollectionInternals ;
7
7
8
+ /**
9
+ * This class contains static utility methods for creating Java Streams from Scala Collections, similar
10
+ * to the methods in {@code java.util.stream.StreamSupport} for other Java types. It is intended for
11
+ * use from Java code. In Scala code, you can use the extension methods provided by
12
+ * {@code scala.compat.java8.StreamConverters} instead.
13
+ *
14
+ * Streams created from immutable Scala collections are also immutable. Mutable collections should
15
+ * not be modified concurrently. There are no guarantees for success or failure modes of existing
16
+ * streams in case of concurrent modifications.
17
+ */
8
18
public class ScalaStreamSupport {
9
19
/////////////////////
10
20
// Generic Streams //
You can’t perform that action at this time.
0 commit comments