Packages

c

scala.collection.generic

MutableSortedSetFactory

abstract class MutableSortedSetFactory[CC[A] <: mutable.SortedSet[A] with SortedSetLike[A, CC[A]] with mutable.Set[A] with mutable.SetLike[A, CC[A]]] extends SortedSetFactory[CC]

Source
MutableSortedSetFactory.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MutableSortedSetFactory
  2. SortedSetFactory
  3. AnyRef
  4. Any
Implicitly
  1. by CollectionsHaveToParArray
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MutableSortedSetFactory()

Type Members

  1. type Coll = CC[_]
    Definition Classes
    SortedSetFactory
  2. class SortedSetCanBuildFrom[A] extends CanBuildFrom[Coll, A, CC[A]]
    Definition Classes
    SortedSetFactory

Abstract Value Members

  1. abstract def empty[A](implicit ord: Ordering[A]): CC[A]
    Definition Classes
    SortedSetFactory

Concrete Value Members

  1. def apply[A](elems: A*)(implicit ord: Ordering[A]): CC[A]
    Definition Classes
    SortedSetFactory
  2. def newBuilder[A](implicit ord: Ordering[A]): Builder[A, CC[A]]

    mutable.SetBuilder uses '+' which is not a primitive for anything extending mutable.SetLike, this causes serious performance issues since each time 'elems = elems + x' is evaluated elems is cloned (which is O(n)).

    mutable.SetBuilder uses '+' which is not a primitive for anything extending mutable.SetLike, this causes serious performance issues since each time 'elems = elems + x' is evaluated elems is cloned (which is O(n)).

    Fortunately GrowingBuilder comes to rescue.

    Definition Classes
    MutableSortedSetFactorySortedSetFactory
  3. implicit def newCanBuildFrom[A](implicit ord: Ordering[A]): CanBuildFrom[Coll, A, CC[A]]
    Definition Classes
    SortedSetFactory
  4. def toParArray: ParArray[T]
    Implicit
    This member is added by an implicit conversion from MutableSortedSetFactory[CC] to CollectionsHaveToParArray[MutableSortedSetFactory[CC], T] performed by method CollectionsHaveToParArray in scala.collection.parallel. This conversion will take place only if an implicit value of type (MutableSortedSetFactory[CC]) ⇒ GenTraversableOnce[T] is in scope.
    Definition Classes
    CollectionsHaveToParArray