scala.collection.generic

SetFactory

class SetFactory[CC] extends GenericCompanion[CC[X][X]]

A template for companion objects of Set and subclasses thereof.

attributes: abstract
known subclasses: HashSet, Set, ListSet, HashSet, Set, LinkedHashSet, Set

Inherits

  1. GenericCompanion
  2. AnyRef
  3. Any

Type Members

  1. type Coll = CC[_]

    The underlying collection type with unknown element type

Value Members

  1. def apply[A](elems: A*): CC[A]

    Creates a collection with the specified elements

  2. def empty[A]: CC[A]

    The empty collection of type CC[A]

  3. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence

  4. def hashCode(): Int

    Returns a hash code value for the object

  5. def newBuilder[A]: Builder[A, CC[A]]

    The default builder for CC objects

  6. def setCanBuildFrom[A]: CanBuildFrom[CC[_], A, CC[A]]

  7. def toString(): String

    Returns a string representation of the object

Instance constructors

  1. new SetFactory()