StreamConverters
This object contains methods to create Java Streams that operate on Scala collections (sequentially or in parallel).
This object contains methods to create Java Streams that operate on Scala collections (sequentially or in parallel). For more information on Java streams, consult the documentation (https://docs.oracle.com/javase/8/docs/api/java/util/stream/package-summary.html).
The explicit conversion methods defined here are intended to be used in Java code. For Scala code, it is recommended to use the extension methods defined in scala.jdk.StreamConverters.
Note: to convert between Scala collections and classic Java collections, use CollectionConverters.
For details how the stream converters work, see scala.jdk.StreamConverters.
Value members
Concrete methods
Create a parallel Java DoubleStream for a Scala collection.
Create a parallel Java DoubleStream for a Scala collection.
Note: parallel processing is only efficient for collections that have a
scala.collection.Stepper implementation which supports efficient splitting. For collections
where this is the case, the stepper
method has a return type marked with EfficientSplit
.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a parallel Java DoubleStream for a Scala collection.
Create a parallel Java DoubleStream for a Scala collection.
Note: parallel processing is only efficient for collections that have a
scala.collection.Stepper implementation which supports efficient splitting. For collections
where this is the case, the stepper
method has a return type marked with EfficientSplit
.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a parallel Java IntStream for a Scala collection.
Create a parallel Java IntStream for a Scala collection.
Note: parallel processing is only efficient for collections that have a
scala.collection.Stepper implementation which supports efficient splitting. For collections
where this is the case, the stepper
method has a return type marked with EfficientSplit
.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a parallel Java IntStream for a Scala collection.
Create a parallel Java IntStream for a Scala collection.
Note: parallel processing is only efficient for collections that have a
scala.collection.Stepper implementation which supports efficient splitting. For collections
where this is the case, the stepper
method has a return type marked with EfficientSplit
.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a parallel Java IntStream for a Scala collection.
Create a parallel Java IntStream for a Scala collection.
Note: parallel processing is only efficient for collections that have a
scala.collection.Stepper implementation which supports efficient splitting. For collections
where this is the case, the stepper
method has a return type marked with EfficientSplit
.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a parallel Java IntStream for a Scala collection.
Create a parallel Java IntStream for a Scala collection.
Note: parallel processing is only efficient for collections that have a
scala.collection.Stepper implementation which supports efficient splitting. For collections
where this is the case, the stepper
method has a return type marked with EfficientSplit
.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a parallel Java DoubleStream for the keys of a Scala Map.
Create a parallel Java DoubleStream for the keys of a Scala Map.
Note: parallel processing is only efficient for collections that have a
scala.collection.Stepper implementation which supports efficient splitting. For collections
where this is the case, the stepper
method has a return type marked with EfficientSplit
.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a parallel Java DoubleStream for the keys of a Scala Map.
Create a parallel Java DoubleStream for the keys of a Scala Map.
Note: parallel processing is only efficient for collections that have a
scala.collection.Stepper implementation which supports efficient splitting. For collections
where this is the case, the stepper
method has a return type marked with EfficientSplit
.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a parallel Java IntStream for the keys of a Scala Map.
Create a parallel Java IntStream for the keys of a Scala Map.
Note: parallel processing is only efficient for collections that have a
scala.collection.Stepper implementation which supports efficient splitting. For collections
where this is the case, the stepper
method has a return type marked with EfficientSplit
.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a parallel Java IntStream for the keys of a Scala Map.
Create a parallel Java IntStream for the keys of a Scala Map.
Note: parallel processing is only efficient for collections that have a
scala.collection.Stepper implementation which supports efficient splitting. For collections
where this is the case, the stepper
method has a return type marked with EfficientSplit
.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a parallel Java IntStream for the keys of a Scala Map.
Create a parallel Java IntStream for the keys of a Scala Map.
Note: parallel processing is only efficient for collections that have a
scala.collection.Stepper implementation which supports efficient splitting. For collections
where this is the case, the stepper
method has a return type marked with EfficientSplit
.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a parallel Java IntStream for the keys of a Scala Map.
Create a parallel Java IntStream for the keys of a Scala Map.
Note: parallel processing is only efficient for collections that have a
scala.collection.Stepper implementation which supports efficient splitting. For collections
where this is the case, the stepper
method has a return type marked with EfficientSplit
.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a parallel Java LongStream for the keys of a Scala Map.
Create a parallel Java LongStream for the keys of a Scala Map.
Note: parallel processing is only efficient for collections that have a
scala.collection.Stepper implementation which supports efficient splitting. For collections
where this is the case, the stepper
method has a return type marked with EfficientSplit
.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a parallel Java Stream for the keys of a Scala Map.
Create a parallel Java Stream for the keys of a Scala Map.
Note: parallel processing is only efficient for collections that have a
scala.collection.Stepper implementation which supports efficient splitting. For collections
where this is the case, the stepper
method has a return type marked with EfficientSplit
.
Create a parallel Java LongStream for a Scala collection.
Create a parallel Java LongStream for a Scala collection.
Note: parallel processing is only efficient for collections that have a
scala.collection.Stepper implementation which supports efficient splitting. For collections
where this is the case, the stepper
method has a return type marked with EfficientSplit
.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a parallel Java Stream for a Scala collection.
Create a parallel Java Stream for a Scala collection.
Note: parallel processing is only efficient for collections that have a
scala.collection.Stepper implementation which supports efficient splitting. For collections
where this is the case, the stepper
method has a return type marked with EfficientSplit
.
Create a parallel Java DoubleStream for the values of a Scala Map.
Create a parallel Java DoubleStream for the values of a Scala Map.
Note: parallel processing is only efficient for collections that have a
scala.collection.Stepper implementation which supports efficient splitting. For collections
where this is the case, the stepper
method has a return type marked with EfficientSplit
.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a parallel Java DoubleStream for the values of a Scala Map.
Create a parallel Java DoubleStream for the values of a Scala Map.
Note: parallel processing is only efficient for collections that have a
scala.collection.Stepper implementation which supports efficient splitting. For collections
where this is the case, the stepper
method has a return type marked with EfficientSplit
.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a parallel Java IntStream for the values of a Scala Map.
Create a parallel Java IntStream for the values of a Scala Map.
Note: parallel processing is only efficient for collections that have a
scala.collection.Stepper implementation which supports efficient splitting. For collections
where this is the case, the stepper
method has a return type marked with EfficientSplit
.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a parallel Java IntStream for the values of a Scala Map.
Create a parallel Java IntStream for the values of a Scala Map.
Note: parallel processing is only efficient for collections that have a
scala.collection.Stepper implementation which supports efficient splitting. For collections
where this is the case, the stepper
method has a return type marked with EfficientSplit
.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a parallel Java IntStream for the values of a Scala Map.
Create a parallel Java IntStream for the values of a Scala Map.
Note: parallel processing is only efficient for collections that have a
scala.collection.Stepper implementation which supports efficient splitting. For collections
where this is the case, the stepper
method has a return type marked with EfficientSplit
.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a parallel Java IntStream for the values of a Scala Map.
Create a parallel Java IntStream for the values of a Scala Map.
Note: parallel processing is only efficient for collections that have a
scala.collection.Stepper implementation which supports efficient splitting. For collections
where this is the case, the stepper
method has a return type marked with EfficientSplit
.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a parallel Java LongStream for the values of a Scala Map.
Create a parallel Java LongStream for the values of a Scala Map.
Note: parallel processing is only efficient for collections that have a
scala.collection.Stepper implementation which supports efficient splitting. For collections
where this is the case, the stepper
method has a return type marked with EfficientSplit
.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a parallel Java Stream for the values of a Scala Map.
Create a parallel Java Stream for the values of a Scala Map.
Note: parallel processing is only efficient for collections that have a
scala.collection.Stepper implementation which supports efficient splitting. For collections
where this is the case, the stepper
method has a return type marked with EfficientSplit
.
Create a sequential Java DoubleStream for a Scala collection.
Create a sequential Java DoubleStream for a Scala collection.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a sequential Java DoubleStream for a Scala collection.
Create a sequential Java DoubleStream for a Scala collection.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a sequential Java IntStream for a Scala collection.
Create a sequential Java IntStream for a Scala collection.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a sequential Java IntStream for a Scala collection.
Create a sequential Java IntStream for a Scala collection.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a sequential Java IntStream for a Scala collection.
Create a sequential Java IntStream for a Scala collection.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a sequential Java IntStream for a Scala collection.
Create a sequential Java IntStream for a Scala collection.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a sequential Java DoubleStream for the keys of a Scala Map.
Create a sequential Java DoubleStream for the keys of a Scala Map.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a sequential Java DoubleStream for the keys of a Scala Map.
Create a sequential Java DoubleStream for the keys of a Scala Map.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a sequential Java IntStream for the keys of a Scala Map.
Create a sequential Java IntStream for the keys of a Scala Map.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a sequential Java IntStream for the keys of a Scala Map.
Create a sequential Java IntStream for the keys of a Scala Map.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a sequential Java IntStream for the keys of a Scala Map.
Create a sequential Java IntStream for the keys of a Scala Map.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a sequential Java IntStream for the keys of a Scala Map.
Create a sequential Java IntStream for the keys of a Scala Map.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a sequential Java LongStream for the keys of a Scala Map.
Create a sequential Java LongStream for the keys of a Scala Map.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a sequential Java Stream for the keys of a Scala Map.
Create a sequential Java Stream for the keys of a Scala Map.
Create a sequential Java LongStream for a Scala collection.
Create a sequential Java LongStream for a Scala collection.
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a sequential Java Stream for a Scala collection.
Create a sequential Java Stream for a Scala collection.
Create a sequential Java DoubleStream for the values of a
Create a sequential Java DoubleStream for the values of a
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a sequential Java DoubleStream for the values of a
Create a sequential Java DoubleStream for the values of a
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a sequential Java IntStream for the values of a
Create a sequential Java IntStream for the values of a
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a sequential Java IntStream for the values of a
Create a sequential Java IntStream for the values of a
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a sequential Java IntStream for the values of a
Create a sequential Java IntStream for the values of a
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a sequential Java IntStream for the values of a
Create a sequential Java IntStream for the values of a
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a sequential Java LongStream for the values of a
Create a sequential Java LongStream for the values of a
Note: this method uses the boxed type java.lang.X
instead of the
primitive type scala.X
to improve compatibility when using it in
Java code (the Scala compiler emits C[Int]
as C[Object]
in bytecode
due to scala/bug#4214). In
Scala code, add import scala.jdk.StreamConverters._
and use the
extension methods instead.
Create a sequential Java Stream for the values of a Scala Map.
Create a sequential Java Stream for the values of a Scala Map.