scala.collection.immutable

HashSet

object HashSet extends SetFactory[HashSet[A][A]]

A factory object for immutable HashSets.

Go to: companion

Inherits

  1. SetFactory
  2. GenericCompanion
  3. AnyRef
  4. 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 canBuildFrom[A]: CanBuildFrom[scala.collection.immutable.HashSet[_], A, HashSet[A]]

  3. def empty[A]: HashSet[A]

    The empty collection of type CC[A]

  4. def equals(arg0: Any): Boolean

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

  5. def hashCode(): Int

    Returns a hash code value for the object

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

    The default builder for CC objects

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

  8. def toString(): String

    Returns a string representation of the object