@@ -27,11 +27,9 @@ import scala.collection.parallel.Combiner
27
27
* @define factoryInfo
28
28
* This object provides a set of operations needed to create `$Coll` values.
29
29
*/
30
- abstract class ParMapFactory [CC [X , Y ] <: ParMap [X , Y ] with ParMapLike [X , Y , CC , CC [X , Y ], _ ]]
30
+ abstract class ParMapFactory [CC [X , Y ] <: ParMap [X , Y ] with ParMapLike [X , Y , CC , CC [X , Y ], Sequential [ X , Y ]], Sequential [ X , Y ] <: collection. Map [ X , Y ] with collection. MapOps [ X , Y , Sequential , Sequential [ X , Y ] ]]
31
31
extends GenericParMapCompanion [CC ] {
32
32
33
- type Coll = MapColl
34
-
35
33
// `apply` and `empty` methods were previously inherited from `GenMapFactory`, which
36
34
// has been removed from the Scala library in 2.13
37
35
@@ -45,8 +43,6 @@ extends GenericParMapCompanion[CC] {
45
43
46
44
def empty [K , V ]: CC [K , V ]
47
45
48
- type MapColl = CC [_, _]
49
-
50
46
/** The default builder for $Coll objects.
51
47
* @tparam K the type of the keys
52
48
* @tparam V the type of the associated values
@@ -59,8 +55,8 @@ extends GenericParMapCompanion[CC] {
59
55
*/
60
56
def newCombiner [K , V ]: Combiner [(K , V ), CC [K , V ]]
61
57
62
- class CanCombineFromMap [K , V ] extends CanCombineFrom [CC [_, _ ], (K , V ), CC [K , V ]] {
63
- def apply (from : MapColl ) = from.genericMapCombiner[K , V ].asInstanceOf [Combiner [(K , V ), CC [K , V ]]]
58
+ class CanCombineFromMap [FromK , FromV , K , V ] extends CanCombineFrom [CC [FromK , FromV ], (K , V ), CC [K , V ]] {
59
+ def apply (from : CC [ FromK , FromV ] ) = from.genericMapCombiner[K , V ].asInstanceOf [Combiner [(K , V ), CC [K , V ]]]
64
60
def apply () = newCombiner[K , V ]
65
61
}
66
62
0 commit comments