diff options
Diffstat (limited to 'src/library/scala/collection/parallel/mutable/ParSetLike.scala')
-rw-r--r-- | src/library/scala/collection/parallel/mutable/ParSetLike.scala | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/library/scala/collection/parallel/mutable/ParSetLike.scala b/src/library/scala/collection/parallel/mutable/ParSetLike.scala index 7c9767befd..68f142cda7 100644 --- a/src/library/scala/collection/parallel/mutable/ParSetLike.scala +++ b/src/library/scala/collection/parallel/mutable/ParSetLike.scala @@ -14,8 +14,8 @@ package parallel.mutable import scala.collection.mutable.Set import scala.collection.mutable.Builder -import scala.collection.mutable.Cloneable -import scala.collection.GenSetLike + + @@ -35,21 +35,16 @@ import scala.collection.GenSetLike trait ParSetLike[T, +Repr <: ParSetLike[T, Repr, Sequential] with ParSet[T], +Sequential <: mutable.Set[T] with mutable.SetLike[T, Sequential]] -extends GenSetLike[T, Repr] +extends mutable.SetLike[T, Repr] with collection.parallel.ParIterableLike[T, Repr, Sequential] with collection.parallel.ParSetLike[T, Repr, Sequential] - with Cloneable[Repr] -{ -self => - override def empty: Repr +{ self => - def +=(elem: T): this.type + protected[this] override def newBuilder: Builder[T, Repr] = newCombiner - def -=(elem: T): this.type + protected[this] override def newCombiner: parallel.Combiner[T, Repr] - def +(elem: T) = this.clone() += elem - - def -(elem: T) = this.clone() -= elem + override def empty: Repr // note: should not override toSet } |