Skip to content

Commit 32520ff

Browse files
committed
Add documentation to ScalaStreamSupport
1 parent bf42008 commit 32520ff

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/java/scala/compat/java8/ScalaStreamSupport.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@
55
import java.util.stream.*;
66
import scala.compat.java8.runtime.CollectionInternals;
77

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+
*/
818
public class ScalaStreamSupport {
919
/////////////////////
1020
// Generic Streams //

0 commit comments

Comments
 (0)