@@ -16,7 +16,8 @@ trait PrimitiveStreamUnboxer[A, S] {
1616
1717trait Priority5StreamConverters {
1818 // Note--conversion is only to make sure implicit conversion priority is lower than alternatives.
19- implicit class EnrichScalaCollectionWithSeqStream [A , CC ](cc : CC )(implicit steppize : CC => MakesAnySeqStepper [A ]) {
19+ implicit class EnrichScalaCollectionWithSeqStream [A , CC ](cc : CC )(implicit steppize : CC => MakesAnySeqStepper [A ])
20+ extends MakesSequentialStream [A , Stream [A ]] {
2021 def seqStream : Stream [A ] = StreamSupport .stream(steppize(cc).stepper, false )
2122 }
2223 implicit class EnrichScalaCollectionWithKeySeqStream [K , CC ](cc : CC )(implicit steppize : CC => MakesAnyKeySeqStepper [K ]) {
@@ -28,13 +29,16 @@ trait Priority5StreamConverters {
2829}
2930
3031trait Priority4StreamConverters extends Priority5StreamConverters {
31- implicit class EnrichScalaCollectionWithSeqDoubleStream [CC ](cc : CC )(implicit steppize : CC => MakesDoubleSeqStepper ) {
32+ implicit class EnrichScalaCollectionWithSeqDoubleStream [CC ](cc : CC )(implicit steppize : CC => MakesDoubleSeqStepper )
33+ extends MakesSequentialStream [java.lang.Double , DoubleStream ] {
3234 def seqStream : DoubleStream = StreamSupport .doubleStream(steppize(cc).stepper, false )
3335 }
34- implicit class EnrichScalaCollectionWithSeqIntStream [CC ](cc : CC )(implicit steppize : CC => MakesIntSeqStepper ) {
36+ implicit class EnrichScalaCollectionWithSeqIntStream [CC ](cc : CC )(implicit steppize : CC => MakesIntSeqStepper )
37+ extends MakesSequentialStream [java.lang.Integer , IntStream ] {
3538 def seqStream : IntStream = StreamSupport .intStream(steppize(cc).stepper, false )
3639 }
37- implicit class EnrichScalaCollectionWithSeqLongStream [CC ](cc : CC )(implicit steppize : CC => MakesLongSeqStepper ) {
40+ implicit class EnrichScalaCollectionWithSeqLongStream [CC ](cc : CC )(implicit steppize : CC => MakesLongSeqStepper )
41+ extends MakesSequentialStream [java.lang.Long , LongStream ] {
3842 def seqStream : LongStream = StreamSupport .longStream(steppize(cc).stepper, false )
3943 }
4044 implicit class EnrichScalaCollectionWithSeqDoubleKeyStream [CC ](cc : CC )(implicit steppize : CC => MakesDoubleKeySeqStepper ) {
@@ -58,7 +62,8 @@ trait Priority4StreamConverters extends Priority5StreamConverters {
5862}
5963
6064trait Priority3StreamConverters extends Priority4StreamConverters {
61- implicit class EnrichAnySteppableWithStream [A , CC ](cc : CC )(implicit steppize : CC => MakesAnyStepper [A ]) {
65+ implicit class EnrichAnySteppableWithStream [A , CC ](cc : CC )(implicit steppize : CC => MakesAnyStepper [A ])
66+ extends MakesSequentialStream [A , Stream [A ]] with MakesParallelStream [A , Stream [A ]] {
6267 def seqStream : Stream [A ] = StreamSupport .stream(steppize(cc).stepper, false )
6368 def parStream : Stream [A ] = StreamSupport .stream(steppize(cc).stepper.anticipateParallelism, true )
6469 }
@@ -73,7 +78,8 @@ trait Priority3StreamConverters extends Priority4StreamConverters {
7378}
7479
7580trait Priority2StreamConverters extends Priority3StreamConverters {
76- implicit class EnrichDoubleSteppableWithStream [CC ](cc : CC )(implicit steppize : CC => MakesDoubleStepper ) {
81+ implicit class EnrichDoubleSteppableWithStream [CC ](cc : CC )(implicit steppize : CC => MakesDoubleStepper )
82+ extends MakesSequentialStream [java.lang.Double , DoubleStream ] with MakesParallelStream [java.lang.Double , DoubleStream ] {
7783 def seqStream : DoubleStream = StreamSupport .doubleStream(steppize(cc).stepper, false )
7884 def parStream : DoubleStream = StreamSupport .doubleStream(steppize(cc).stepper.anticipateParallelism, true )
7985 }
@@ -85,7 +91,8 @@ trait Priority2StreamConverters extends Priority3StreamConverters {
8591 def seqValueStream : DoubleStream = StreamSupport .doubleStream(steppize(cc).valueStepper, false )
8692 def parValueStream : DoubleStream = StreamSupport .doubleStream(steppize(cc).valueStepper.anticipateParallelism, true )
8793 }
88- implicit class EnrichIntSteppableWithStream [CC ](cc : CC )(implicit steppize : CC => MakesIntStepper ) {
94+ implicit class EnrichIntSteppableWithStream [CC ](cc : CC )(implicit steppize : CC => MakesIntStepper )
95+ extends MakesSequentialStream [java.lang.Integer , IntStream ] with MakesParallelStream [java.lang.Integer , IntStream ] {
8996 def seqStream : IntStream = StreamSupport .intStream(steppize(cc).stepper, false )
9097 def parStream : IntStream = StreamSupport .intStream(steppize(cc).stepper.anticipateParallelism, true )
9198 }
@@ -97,7 +104,8 @@ trait Priority2StreamConverters extends Priority3StreamConverters {
97104 def seqValueStream : IntStream = StreamSupport .intStream(steppize(cc).valueStepper, false )
98105 def parValueStream : IntStream = StreamSupport .intStream(steppize(cc).valueStepper.anticipateParallelism, true )
99106 }
100- implicit class EnrichLongSteppableWithStream [CC ](cc : CC )(implicit steppize : CC => MakesLongStepper ) {
107+ implicit class EnrichLongSteppableWithStream [CC ](cc : CC )(implicit steppize : CC => MakesLongStepper )
108+ extends MakesSequentialStream [java.lang.Long , LongStream ] with MakesParallelStream [java.lang.Long , LongStream ] {
101109 def seqStream : LongStream = StreamSupport .longStream(steppize(cc).stepper, false )
102110 def parStream : LongStream = StreamSupport .longStream(steppize(cc).stepper.anticipateParallelism, true )
103111 }
@@ -200,17 +208,20 @@ extends Priority1StreamConverters
200208with converterImpl.Priority1StepConverters
201209with converterImpl.Priority1AccumulatorConverters
202210{
203- implicit class EnrichDoubleArrayWithStream (a : Array [Double ]) {
211+ implicit class EnrichDoubleArrayWithStream (a : Array [Double ])
212+ extends MakesSequentialStream [java.lang.Double , DoubleStream ] with MakesParallelStream [java.lang.Double , DoubleStream ] {
204213 def seqStream : DoubleStream = java.util.Arrays .stream(a)
205214 def parStream : DoubleStream = seqStream.parallel
206215 }
207216
208- implicit class EnrichIntArrayWithStream (a : Array [Int ]) {
217+ implicit class EnrichIntArrayWithStream (a : Array [Int ])
218+ extends MakesSequentialStream [java.lang.Integer , IntStream ] with MakesParallelStream [java.lang.Integer , IntStream ] {
209219 def seqStream : IntStream = java.util.Arrays .stream(a)
210220 def parStream : IntStream = seqStream.parallel
211221 }
212222
213- implicit class EnrichLongArrayWithStream (a : Array [Long ]) {
223+ implicit class EnrichLongArrayWithStream (a : Array [Long ])
224+ extends MakesSequentialStream [java.lang.Long , LongStream ] with MakesParallelStream [java.lang.Long , LongStream ] {
214225 def seqStream : LongStream = java.util.Arrays .stream(a)
215226 def parStream : LongStream = seqStream.parallel
216227 }
0 commit comments