public class ScalaStreamSupport
extends java.lang.Object
java.util.stream.StreamSupport
for other Java types. It is intended for
use from Java code. In Scala code, you can use the extension methods provided by
scala.compat.java8.StreamConverters
instead.
Streams created from immutable Scala collections are also immutable. Mutable collections should
not be modified concurrently. There are no guarantees for success or failure modes of existing
streams in case of concurrent modifications.Constructor and Description |
---|
ScalaStreamSupport() |
Modifier and Type | Method and Description |
---|---|
static java.util.stream.DoubleStream |
doubleStream(scala.collection.IterableOnce<java.lang.Double> coll)
Generates a DoubleStream that traverses a Scala collection.
|
static java.util.stream.DoubleStream |
doubleStreamAccumulated(scala.collection.IterableOnce<java.lang.Double> coll)
Generates a DoubleStream that traverses any Scala collection by accumulating its entries
into a buffer class (Accumulator).
|
static java.util.stream.DoubleStream |
doubleStreamAccumulatedKeys(scala.collection.Map<java.lang.Double,?> coll)
Generates a DoubleStream that traverses the keys of any Scala map by
accumulating those keys into a buffer class (Accumulator).
|
static java.util.stream.DoubleStream |
doubleStreamAccumulatedValues(scala.collection.Map<?,java.lang.Double> coll)
Generates a DoubleStream that traverses the values of any Scala map by
accumulating those values into a buffer class (Accumulator).
|
static java.util.stream.DoubleStream |
doubleStreamKeys(scala.collection.Map<java.lang.Double,?> coll)
Generates a DoubleStream that traverses the keys of a scala.collection.Map.
|
static java.util.stream.DoubleStream |
doubleStreamValues(scala.collection.Map<?,java.lang.Double> coll)
Generates a DoubleStream that traverses the values of a scala.collection.Map.
|
static java.util.stream.IntStream |
intStream(scala.collection.IterableOnce<java.lang.Integer> coll)
Generates a IntStream that traverses a Scala collection.
|
static java.util.stream.IntStream |
intStreamAccumulated(scala.collection.IterableOnce<java.lang.Integer> coll)
Generates a IntStream that traverses any Scala collection by accumulating its entries
into a buffer class (Accumulator).
|
static java.util.stream.IntStream |
intStreamAccumulatedKeys(scala.collection.Map<java.lang.Integer,?> coll)
Generates a IntStream that traverses the keys of any Scala map by
accumulating those keys into a buffer class (Accumulator).
|
static java.util.stream.IntStream |
intStreamAccumulatedValues(scala.collection.Map<?,java.lang.Integer> coll)
Generates a IntStream that traverses the values of any Scala map by
accumulating those values into a buffer class (Accumulator).
|
static java.util.stream.IntStream |
intStreamKeys(scala.collection.Map<java.lang.Integer,?> coll)
Generates a IntStream that traverses the keys of a scala.collection.Map.
|
static java.util.stream.IntStream |
intStreamValues(scala.collection.Map<?,java.lang.Integer> coll)
Generates a IntStream that traverses the values of a scala.collection.Map.
|
static java.util.stream.LongStream |
longStream(scala.collection.IterableOnce<java.lang.Long> coll)
Generates a LongStream that traverses a Scala collection.
|
static java.util.stream.LongStream |
longStreamAccumulated(scala.collection.IterableOnce<java.lang.Long> coll)
Generates a LongStream that traverses any Scala collection by accumulating its entries
into a buffer class (Accumulator).
|
static java.util.stream.LongStream |
longStreamAccumulatedKeys(scala.collection.Map<java.lang.Long,?> coll)
Generates a LongStream that traverses the keys of any Scala map by
accumulating those keys into a buffer class (Accumulator).
|
static java.util.stream.LongStream |
longStreamAccumulatedValues(scala.collection.Map<?,java.lang.Long> coll)
Generates a LongStream that traverses the values of any Scala map by
accumulating those values into a buffer class (Accumulator).
|
static java.util.stream.LongStream |
longStreamKeys(scala.collection.Map<java.lang.Long,?> coll)
Generates a LongStream that traverses the keys of a scala.collection.Map.
|
static java.util.stream.LongStream |
longStreamValues(scala.collection.Map<?,java.lang.Long> coll)
Generates a LongStream that traverses the values of a scala.collection.Map.
|
static <T> java.util.stream.Stream<T> |
stream(scala.collection.IterableOnce<T> coll)
Generates a Stream that traverses a Scala collection.
|
static <K,V> java.util.stream.Stream<scala.Tuple2<K,V>> |
stream(scala.collection.Map<K,V> coll)
Generates a Stream that traverses the key-value pairs of a scala.collection.Map.
|
static <T> java.util.stream.Stream<T> |
streamAccumulated(scala.collection.IterableOnce<T> coll)
Generates a Stream that traverses any Scala collection by accumulating its entries
into a buffer class (Accumulator).
|
static <K> java.util.stream.Stream<K> |
streamAccumulatedKeys(scala.collection.Map<K,?> coll)
Generates a Stream that traverses the keys of any Scala map by
accumulating those keys into a buffer class (Accumulator).
|
static <V> java.util.stream.Stream<V> |
streamAccumulatedValues(scala.collection.Map<?,V> coll)
Generates a Stream that traverses the values of any Scala map by
accumulating those values into a buffer class (Accumulator).
|
static <K> java.util.stream.Stream<K> |
streamKeys(scala.collection.Map<K,?> coll)
Generates a Stream that traverses the keys of a scala.collection.Map.
|
static <V> java.util.stream.Stream<V> |
streamValues(scala.collection.Map<?,V> coll)
Generates a Stream that traverses the values of a scala.collection.Map.
|
public static <T> java.util.stream.Stream<T> stream(scala.collection.IterableOnce<T> coll)
Parallel processing is only efficient for collections that have a Stepper implementation which supports efficient splitting. For collections where this is the case, the stepper method has a return type marked with EfficientSplit.
coll
- The IterableOnce to traversepublic static <K> java.util.stream.Stream<K> streamKeys(scala.collection.Map<K,?> coll)
Parallel processing is only efficient for Maps that have a keyStepper implementation which supports efficient splitting. For collections where this is the case, the keyStepper method has a return type marked with EfficientSplit.
coll
- The Map to traversepublic static <V> java.util.stream.Stream<V> streamValues(scala.collection.Map<?,V> coll)
Parallel processing is only efficient for Maps that have a valueStepper implementation which supports efficient splitting. For collections where this is the case, the valueStepper method has a return type marked with EfficientSplit.
coll
- The Map to traversepublic static <K,V> java.util.stream.Stream<scala.Tuple2<K,V>> stream(scala.collection.Map<K,V> coll)
Parallel processing is only efficient for collections that have a Stepper implementation which supports efficient splitting. For collections where this is the case, the stepper method has a return type marked with EfficientSplit.
coll
- The Map to traversepublic static <T> java.util.stream.Stream<T> streamAccumulated(scala.collection.IterableOnce<T> coll)
Both sequential and parallel operations will be efficient.
coll
- The collection to traversepublic static <K> java.util.stream.Stream<K> streamAccumulatedKeys(scala.collection.Map<K,?> coll)
Both sequential and parallel operations will be efficient.
coll
- The map containing keys to traversepublic static <V> java.util.stream.Stream<V> streamAccumulatedValues(scala.collection.Map<?,V> coll)
Both sequential and parallel operations will be efficient.
coll
- The map containing values to traversepublic static java.util.stream.DoubleStream doubleStream(scala.collection.IterableOnce<java.lang.Double> coll)
Parallel processing is only efficient for collections that have a Stepper implementation which supports efficient splitting. For collections where this is the case, the stepper method has a return type marked with EfficientSplit.
coll
- The IterableOnce to traversepublic static java.util.stream.DoubleStream doubleStreamKeys(scala.collection.Map<java.lang.Double,?> coll)
Parallel processing is only efficient for Maps that have a keyStepper implementation which supports efficient splitting. For collections where this is the case, the keyStepper method has a return type marked with EfficientSplit.
coll
- The Map to traversepublic static java.util.stream.DoubleStream doubleStreamValues(scala.collection.Map<?,java.lang.Double> coll)
Parallel processing is only efficient for Maps that have a valueStepper implementation which supports efficient splitting. For collections where this is the case, the valueStepper method has a return type marked with EfficientSplit.
coll
- The Map to traversepublic static java.util.stream.DoubleStream doubleStreamAccumulated(scala.collection.IterableOnce<java.lang.Double> coll)
Both sequential and parallel operations will be efficient.
coll
- The collection to traversepublic static java.util.stream.DoubleStream doubleStreamAccumulatedKeys(scala.collection.Map<java.lang.Double,?> coll)
Both sequential and parallel operations will be efficient.
coll
- The map containing keys to traversepublic static java.util.stream.DoubleStream doubleStreamAccumulatedValues(scala.collection.Map<?,java.lang.Double> coll)
Both sequential and parallel operations will be efficient.
coll
- The map containing values to traversepublic static java.util.stream.IntStream intStream(scala.collection.IterableOnce<java.lang.Integer> coll)
Parallel processing is only efficient for collections that have a Stepper implementation which supports efficient splitting. For collections where this is the case, the stepper method has a return type marked with EfficientSplit.
coll
- The IterableOnce to traversepublic static java.util.stream.IntStream intStreamKeys(scala.collection.Map<java.lang.Integer,?> coll)
Parallel processing is only efficient for Maps that have a keyStepper implementation which supports efficient splitting. For collections where this is the case, the keyStepper method has a return type marked with EfficientSplit.
coll
- The Map to traversepublic static java.util.stream.IntStream intStreamValues(scala.collection.Map<?,java.lang.Integer> coll)
Parallel processing is only efficient for Maps that have a valueStepper implementation which supports efficient splitting. For collections where this is the case, the valueStepper method has a return type marked with EfficientSplit.
coll
- The Map to traversepublic static java.util.stream.IntStream intStreamAccumulated(scala.collection.IterableOnce<java.lang.Integer> coll)
Both sequential and parallel operations will be efficient.
coll
- The collection to traversepublic static java.util.stream.IntStream intStreamAccumulatedKeys(scala.collection.Map<java.lang.Integer,?> coll)
Both sequential and parallel operations will be efficient.
coll
- The map containing keys to traversepublic static java.util.stream.IntStream intStreamAccumulatedValues(scala.collection.Map<?,java.lang.Integer> coll)
Both sequential and parallel operations will be efficient.
coll
- The map containing values to traversepublic static java.util.stream.LongStream longStream(scala.collection.IterableOnce<java.lang.Long> coll)
Parallel processing is only efficient for collections that have a Stepper implementation which supports efficient splitting. For collections where this is the case, the stepper method has a return type marked with EfficientSplit.
coll
- The IterableOnce to traversepublic static java.util.stream.LongStream longStreamKeys(scala.collection.Map<java.lang.Long,?> coll)
Parallel processing is only efficient for Maps that have a keyStepper implementation which supports efficient splitting. For collections where this is the case, the keyStepper method has a return type marked with EfficientSplit.
coll
- The Map to traversepublic static java.util.stream.LongStream longStreamValues(scala.collection.Map<?,java.lang.Long> coll)
Parallel processing is only efficient for Maps that have a valueStepper implementation which supports efficient splitting. For collections where this is the case, the valueStepper method has a return type marked with EfficientSplit.
coll
- The Map to traversepublic static java.util.stream.LongStream longStreamAccumulated(scala.collection.IterableOnce<java.lang.Long> coll)
Both sequential and parallel operations will be efficient.
coll
- The collection to traversepublic static java.util.stream.LongStream longStreamAccumulatedKeys(scala.collection.Map<java.lang.Long,?> coll)
Both sequential and parallel operations will be efficient.
coll
- The map containing keys to traversepublic static java.util.stream.LongStream longStreamAccumulatedValues(scala.collection.Map<?,java.lang.Long> coll)
Both sequential and parallel operations will be efficient.
coll
- The map containing values to traverse