StreamConverters

scala.jdk.javaapi.StreamConverters

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/en/java/javase/17/docs/api/java.base/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.

Attributes

Source
StreamConverters.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

Creates a parallel Java DoubleStream for a Scala collection.

Creates 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.

Value parameters

cc

the Scala collection of doubles to convert

Attributes

Returns

a parallel DoubleStream for the collection

Source
StreamConverters.scala

Creates a parallel Java DoubleStream for a Scala collection.

Creates 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.

Value parameters

cc

the Scala collection of floats to convert

Attributes

Returns

a parallel DoubleStream for the collection

Source
StreamConverters.scala

Creates a parallel Java IntStream for a Scala collection.

Creates 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.

Value parameters

cc

the Scala collection of integers to convert

Attributes

Returns

a parallel IntStream for the collection

Source
StreamConverters.scala

Creates a parallel Java IntStream for a Scala collection.

Creates 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.

Value parameters

cc

the Scala collection of bytes to convert

Attributes

Returns

a parallel IntStream for the collection

Source
StreamConverters.scala

Creates a parallel Java IntStream for a Scala collection.

Creates 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.

Value parameters

cc

the Scala collection of characters to convert

Attributes

Returns

a parallel IntStream for the collection

Source
StreamConverters.scala

Creates a parallel Java IntStream for a Scala collection.

Creates 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.

Value parameters

cc

the Scala collection of shorts to convert

Attributes

Returns

a parallel IntStream for the collection

Source
StreamConverters.scala

Creates a parallel Java DoubleStream for the keys of a Scala Map.

Creates 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.

Type parameters

V

the value type of the map

Value parameters

m

the Scala Map whose keys to stream over

Attributes

Returns

a parallel DoubleStream for the map's keys

Source
StreamConverters.scala

Creates a parallel Java DoubleStream for the keys of a Scala Map.

Creates 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.

Type parameters

V

the value type of the map

Value parameters

m

the Scala Map whose keys to stream over

Attributes

Returns

a parallel DoubleStream for the map's keys

Source
StreamConverters.scala

Creates a parallel Java IntStream for the keys of a Scala Map.

Creates 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.

Type parameters

V

the value type of the map

Value parameters

m

the Scala Map whose keys to stream over

Attributes

Returns

a parallel IntStream for the map's keys

Source
StreamConverters.scala

Creates a parallel Java IntStream for the keys of a Scala Map.

Creates 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.

Type parameters

V

the value type of the map

Value parameters

m

the Scala Map whose keys to stream over

Attributes

Returns

a parallel IntStream for the map's keys

Source
StreamConverters.scala

Creates a parallel Java IntStream for the keys of a Scala Map.

Creates 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.

Type parameters

V

the value type of the map

Value parameters

m

the Scala Map whose keys to stream over

Attributes

Returns

a parallel IntStream for the map's keys

Source
StreamConverters.scala

Creates a parallel Java IntStream for the keys of a Scala Map.

Creates 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.

Type parameters

V

the value type of the map

Value parameters

m

the Scala Map whose keys to stream over

Attributes

Returns

a parallel IntStream for the map's keys

Source
StreamConverters.scala

Creates a parallel Java LongStream for the keys of a Scala Map.

Creates 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.

Type parameters

V

the value type of the map

Value parameters

m

the Scala Map whose keys to stream over

Attributes

Returns

a parallel LongStream for the map's keys

Source
StreamConverters.scala
def asJavaParKeyStream[K, V](m: Map[K, V]): Stream[K]

Creates a parallel Java Stream for the keys of a Scala Map.

Creates 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.

Type parameters

K

the key type of the map

V

the value type of the map

Value parameters

m

the Scala Map whose keys to stream over

Attributes

Returns

a parallel Stream for the map's keys

Source
StreamConverters.scala

Creates a parallel Java LongStream for a Scala collection.

Creates 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.

Value parameters

cc

the Scala collection of longs to convert

Attributes

Returns

a parallel LongStream for the collection

Source
StreamConverters.scala
def asJavaParStream[A](cc: IterableOnce[A]): Stream[A]

Creates a parallel Java Stream for a Scala collection.

Creates 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.

Type parameters

A

the element type of the collection

Value parameters

cc

the Scala collection to convert to a parallel Java Stream

Attributes

Returns

a parallel Stream for the collection

Source
StreamConverters.scala

Creates a parallel Java DoubleStream for the values of a Scala Map.

Creates 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.

Type parameters

K

the key type of the map

Value parameters

m

the Scala Map whose values to stream over

Attributes

Returns

a parallel DoubleStream for the map's values

Source
StreamConverters.scala

Creates a parallel Java DoubleStream for the values of a Scala Map.

Creates 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.

Type parameters

K

the key type of the map

Value parameters

m

the Scala Map whose values to stream over

Attributes

Returns

a parallel DoubleStream for the map's values

Source
StreamConverters.scala

Creates a parallel Java IntStream for the values of a Scala Map.

Creates 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.

Type parameters

K

the key type of the map

Value parameters

m

the Scala Map whose values to stream over

Attributes

Returns

a parallel IntStream for the map's values

Source
StreamConverters.scala

Creates a parallel Java IntStream for the values of a Scala Map.

Creates 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.

Type parameters

K

the key type of the map

Value parameters

m

the Scala Map whose values to stream over

Attributes

Returns

a parallel IntStream for the map's values

Source
StreamConverters.scala

Creates a parallel Java IntStream for the values of a Scala Map.

Creates 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.

Type parameters

K

the key type of the map

Value parameters

m

the Scala Map whose values to stream over

Attributes

Returns

a parallel IntStream for the map's values

Source
StreamConverters.scala

Creates a parallel Java IntStream for the values of a Scala Map.

Creates 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.

Type parameters

K

the key type of the map

Value parameters

m

the Scala Map whose values to stream over

Attributes

Returns

a parallel IntStream for the map's values

Source
StreamConverters.scala

Creates a parallel Java LongStream for the values of a Scala Map.

Creates 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.

Type parameters

K

the key type of the map

Value parameters

m

the Scala Map whose values to stream over

Attributes

Returns

a parallel LongStream for the map's values

Source
StreamConverters.scala
def asJavaParValueStream[K, V](m: Map[K, V]): Stream[V]

Creates a parallel Java Stream for the values of a Scala Map.

Creates 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.

Type parameters

K

the key type of the map

V

the value type of the map

Value parameters

m

the Scala Map whose values to stream over

Attributes

Returns

a parallel Stream for the map's values

Source
StreamConverters.scala

Creates a sequential Java DoubleStream for a Scala collection.

Creates 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.

Value parameters

cc

the Scala collection of doubles to convert

Attributes

Returns

a sequential DoubleStream for the collection

Source
StreamConverters.scala

Creates a sequential Java DoubleStream for a Scala collection.

Creates 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.

Value parameters

cc

the Scala collection of floats to convert

Attributes

Returns

a sequential DoubleStream for the collection

Source
StreamConverters.scala

Creates a sequential Java IntStream for a Scala collection.

Creates 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.

Value parameters

cc

the Scala collection of integers to convert

Attributes

Returns

a sequential IntStream for the collection

Source
StreamConverters.scala

Creates a sequential Java IntStream for a Scala collection.

Creates 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.

Value parameters

cc

the Scala collection of bytes to convert

Attributes

Returns

a sequential IntStream for the collection

Source
StreamConverters.scala

Creates a sequential Java IntStream for a Scala collection.

Creates 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.

Value parameters

cc

the Scala collection of characters to convert

Attributes

Returns

a sequential IntStream for the collection

Source
StreamConverters.scala

Creates a sequential Java IntStream for a Scala collection.

Creates 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.

Value parameters

cc

the Scala collection of shorts to convert

Attributes

Returns

a sequential IntStream for the collection

Source
StreamConverters.scala

Creates a sequential Java DoubleStream for the keys of a Scala Map.

Creates 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.

Type parameters

V

the value type of the map

Value parameters

m

the Scala Map whose keys to stream over

Attributes

Returns

a sequential DoubleStream for the map's keys

Source
StreamConverters.scala

Creates a sequential Java DoubleStream for the keys of a Scala Map.

Creates 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.

Type parameters

V

the value type of the map

Value parameters

m

the Scala Map whose keys to stream over

Attributes

Returns

a sequential DoubleStream for the map's keys

Source
StreamConverters.scala

Creates a sequential Java IntStream for the keys of a Scala Map.

Creates 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.

Type parameters

V

the value type of the map

Value parameters

m

the Scala Map whose keys to stream over

Attributes

Returns

a sequential IntStream for the map's keys

Source
StreamConverters.scala

Creates a sequential Java IntStream for the keys of a Scala Map.

Creates 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.

Type parameters

V

the value type of the map

Value parameters

m

the Scala Map whose keys to stream over

Attributes

Returns

a sequential IntStream for the map's keys

Source
StreamConverters.scala

Creates a sequential Java IntStream for the keys of a Scala Map.

Creates 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.

Type parameters

V

the value type of the map

Value parameters

m

the Scala Map whose keys to stream over

Attributes

Returns

a sequential IntStream for the map's keys

Source
StreamConverters.scala

Creates a sequential Java IntStream for the keys of a Scala Map.

Creates 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.

Type parameters

V

the value type of the map

Value parameters

m

the Scala Map whose keys to stream over

Attributes

Returns

a sequential IntStream for the map's keys

Source
StreamConverters.scala

Creates a sequential Java LongStream for the keys of a Scala Map.

Creates 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.

Type parameters

V

the value type of the map

Value parameters

m

the Scala Map whose keys to stream over

Attributes

Returns

a sequential LongStream for the map's keys

Source
StreamConverters.scala
def asJavaSeqKeyStream[K, V](m: Map[K, V]): Stream[K]

Creates a sequential Java Stream for the keys of a Scala Map.

Creates a sequential Java Stream for the keys of a Scala Map.

Type parameters

K

the key type of the map

V

the value type of the map

Value parameters

m

the Scala Map whose keys to stream over

Attributes

Returns

a sequential Stream for the map's keys

Source
StreamConverters.scala

Creates a sequential Java LongStream for a Scala collection.

Creates 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.

Value parameters

cc

the Scala collection of longs to convert

Attributes

Returns

a sequential LongStream for the collection

Source
StreamConverters.scala
def asJavaSeqStream[A](cc: IterableOnce[A]): Stream[A]

Creates a sequential Java Stream for a Scala collection.

Creates a sequential Java Stream for a Scala collection.

Type parameters

A

the element type of the collection

Value parameters

cc

the Scala collection to convert to a Java Stream

Attributes

Returns

a sequential Stream for the collection

Source
StreamConverters.scala

Creates a sequential Java DoubleStream for the values of a Scala Map.

Creates a sequential Java DoubleStream for the values 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.

Type parameters

K

the key type of the map

Value parameters

m

the Scala Map whose values to stream over

Attributes

Returns

a sequential DoubleStream for the map's values

Source
StreamConverters.scala

Creates a sequential Java DoubleStream for the values of a Scala Map.

Creates a sequential Java DoubleStream for the values 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.

Type parameters

K

the key type of the map

Value parameters

m

the Scala Map whose values to stream over

Attributes

Returns

a sequential DoubleStream for the map's values

Source
StreamConverters.scala

Creates a sequential Java IntStream for the values of a Scala Map.

Creates a sequential Java IntStream for the values 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.

Type parameters

K

the key type of the map

Value parameters

m

the Scala Map whose values to stream over

Attributes

Returns

a sequential IntStream for the map's values

Source
StreamConverters.scala

Creates a sequential Java IntStream for the values of a Scala Map.

Creates a sequential Java IntStream for the values 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.

Type parameters

K

the key type of the map

Value parameters

m

the Scala Map whose values to stream over

Attributes

Returns

a sequential IntStream for the map's values

Source
StreamConverters.scala

Creates a sequential Java IntStream for the values of a Scala Map.

Creates a sequential Java IntStream for the values 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.

Type parameters

K

the key type of the map

Value parameters

m

the Scala Map whose values to stream over

Attributes

Returns

a sequential IntStream for the map's values

Source
StreamConverters.scala

Creates a sequential Java IntStream for the values of a Scala Map.

Creates a sequential Java IntStream for the values 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.

Type parameters

K

the key type of the map

Value parameters

m

the Scala Map whose values to stream over

Attributes

Returns

a sequential IntStream for the map's values

Source
StreamConverters.scala

Creates a sequential Java LongStream for the values of a Scala Map.

Creates a sequential Java LongStream for the values 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.

Type parameters

K

the key type of the map

Value parameters

m

the Scala Map whose values to stream over

Attributes

Returns

a sequential LongStream for the map's values

Source
StreamConverters.scala
def asJavaSeqValueStream[K, V](m: Map[K, V]): Stream[V]

Creates a sequential Java Stream for the values of a Scala Map.

Creates a sequential Java Stream for the values of a Scala Map.

Type parameters

K

the key type of the map

V

the value type of the map

Value parameters

m

the Scala Map whose values to stream over

Attributes

Returns

a sequential Stream for the map's values

Source
StreamConverters.scala