class HashMultiSet[T] extends MultiSet[T]

An implementation of a MultiSet backed by a HashMap.

Linear Supertypes
MultiSet[T], Traversable[T], GenTraversable[T], GenericTraversableTemplate[T, Traversable], TraversableLike[T, Traversable[T]], GenTraversableLike[T, Traversable[T]], Parallelizable[T, ParIterable[T]], TraversableOnce[T], GenTraversableOnce[T], FilterMonadic[T, Traversable[T]], HasNewBuilder[T, Traversable[T]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HashMultiSet
  2. MultiSet
  3. Traversable
  4. GenTraversable
  5. GenericTraversableTemplate
  6. TraversableLike
  7. GenTraversableLike
  8. Parallelizable
  9. TraversableOnce
  10. GenTraversableOnce
  11. FilterMonadic
  12. HasNewBuilder
  13. AnyRef
  14. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HashMultiSet()

Type Members

  1. type Self = Traversable[T]
    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  2. class WithFilter extends FilterMonadic[A, Repr]
    Definition Classes
    TraversableLike

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def ++[B >: T, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Traversable[T], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  4. def ++:[B >: T, That](that: Traversable[B])(implicit bf: CanBuildFrom[Traversable[T], B, That]): That
    Definition Classes
    TraversableLike
  5. def ++:[B >: T, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Traversable[T], B, That]): That
    Definition Classes
    TraversableLike
  6. def /:[B](z: B)(op: (B, T) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  7. def :\[B](z: B)(op: (T, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  8. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def addMany(t: T, count: Int): HashMultiSet[T]

    Add several instances of this value to the set.

    Add several instances of this value to the set.

    Definition Classes
    HashMultiSetMultiSet
  10. def addOne(t: T): HashMultiSet[T]

    Add an instance of this value to the set.

    Add an instance of this value to the set.

    Definition Classes
    HashMultiSetMultiSet
  11. def addString(b: StringBuilder): StringBuilder
    Definition Classes
    TraversableOnce
  12. def addString(b: StringBuilder, sep: String): StringBuilder
    Definition Classes
    TraversableOnce
  13. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
    Definition Classes
    TraversableOnce
  14. def aggregate[B](z: ⇒ B)(seqop: (B, T) ⇒ B, combop: (B, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  15. def apply(t: T): Int

    Return the number of instances of the value in the set.

    Return the number of instances of the value in the set.

    Definition Classes
    HashMultiSetMultiSet
  16. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  17. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. def collect[B, That](pf: PartialFunction[T, B])(implicit bf: CanBuildFrom[Traversable[T], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  19. def collectFirst[B](pf: PartialFunction[T, B]): Option[B]
    Definition Classes
    TraversableOnce
  20. def companion: GenericCompanion[Traversable]
    Definition Classes
    Traversable → GenTraversable → GenericTraversableTemplate
  21. def copyToArray[B >: T](xs: Array[B], start: Int, len: Int): Unit
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  22. def copyToArray[B >: T](xs: Array[B]): Unit
    Definition Classes
    TraversableOnce → GenTraversableOnce
  23. def copyToArray[B >: T](xs: Array[B], start: Int): Unit
    Definition Classes
    TraversableOnce → GenTraversableOnce
  24. def copyToBuffer[B >: T](dest: Buffer[B]): Unit
    Definition Classes
    TraversableOnce
  25. def count(p: (T) ⇒ Boolean): Int
    Definition Classes
    TraversableOnce → GenTraversableOnce
  26. def counts: Set[(T, Int)]

    Creates a list of (element, count) pairs.

    Creates a list of (element, count) pairs. Order is arbitrary.

    Definition Classes
    HashMultiSetMultiSet
  27. def drop(n: Int): Traversable[T]
    Definition Classes
    TraversableLike → GenTraversableLike
  28. def dropWhile(p: (T) ⇒ Boolean): Traversable[T]
    Definition Classes
    TraversableLike → GenTraversableLike
  29. def elements: List[T]

    Creates a list of elements, where each element may appear multiple times.

    Creates a list of elements, where each element may appear multiple times. Order is arbitrary.

    Definition Classes
    HashMultiSetMultiSet
  30. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. def equals(that: Any): Boolean

    Returns true if the counts are the same.

    Returns true if the counts are the same.

    Definition Classes
    MultiSet → AnyRef → Any
  32. def exists(p: (T) ⇒ Boolean): Boolean
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  33. def filter(p: (T) ⇒ Boolean): Traversable[T]
    Definition Classes
    TraversableLike → GenTraversableLike
  34. def filterNot(p: (T) ⇒ Boolean): Traversable[T]
    Definition Classes
    TraversableLike → GenTraversableLike
  35. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  36. def find(p: (T) ⇒ Boolean): Option[T]
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  37. def flatMap[B, That](f: (T) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Traversable[T], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  38. def flatten[B](implicit asTraversable: (T) ⇒ GenTraversableOnce[B]): Traversable[B]
    Definition Classes
    GenericTraversableTemplate
  39. def fold[A1 >: T](z: A1)(op: (A1, A1) ⇒ A1): A1
    Definition Classes
    TraversableOnce → GenTraversableOnce
  40. def foldLeft[B](z: B)(op: (B, T) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  41. def foldRight[B](z: B)(op: (T, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  42. def forall(p: (T) ⇒ Boolean): Boolean
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  43. def foreach[U](fn: (T) ⇒ U): Unit

    Iterate over instances in this set and apply the given function.

    Iterate over instances in this set and apply the given function.

    Definition Classes
    HashMultiSetMultiSet → GenericTraversableTemplate → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  44. def genericBuilder[B]: Builder[B, Traversable[B]]
    Definition Classes
    GenericTraversableTemplate
  45. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  46. def groupBy[K](f: (T) ⇒ K): Map[K, Traversable[T]]
    Definition Classes
    TraversableLike → GenTraversableLike
  47. def hasDefiniteSize: Boolean
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  48. def hashCode(): Int
    Definition Classes
    MultiSet → AnyRef → Any
  49. def head: T
    Definition Classes
    TraversableLike → GenTraversableLike
  50. def headOption: Option[T]
    Definition Classes
    TraversableLike → GenTraversableLike
  51. def init: Traversable[T]
    Definition Classes
    TraversableLike → GenTraversableLike
  52. def inits: Iterator[Traversable[T]]
    Definition Classes
    TraversableLike
  53. def isEmpty: Boolean
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  54. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  55. final def isTraversableAgain: Boolean
    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  56. def last: T
    Definition Classes
    TraversableLike → GenTraversableLike
  57. def lastOption: Option[T]
    Definition Classes
    TraversableLike → GenTraversableLike
  58. def map[U](fn: (T) ⇒ U): HashMultiSet[U]

    Map this set to another set by applying the supplied function.

    Map this set to another set by applying the supplied function.

    Definition Classes
    HashMultiSetMultiSet
  59. def map[B, That](f: (T) ⇒ B)(implicit bf: CanBuildFrom[Traversable[T], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  60. def max[B >: T](implicit cmp: Ordering[B]): T
    Definition Classes
    TraversableOnce → GenTraversableOnce
  61. def maxBy[B](f: (T) ⇒ B)(implicit cmp: Ordering[B]): T
    Definition Classes
    TraversableOnce → GenTraversableOnce
  62. def min[B >: T](implicit cmp: Ordering[B]): T
    Definition Classes
    TraversableOnce → GenTraversableOnce
  63. def minBy[B](f: (T) ⇒ B)(implicit cmp: Ordering[B]): T
    Definition Classes
    TraversableOnce → GenTraversableOnce
  64. def mkString: String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  65. def mkString(sep: String): String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  66. def mkString(start: String, sep: String, end: String): String
    Definition Classes
    TraversableOnce → GenTraversableOnce
  67. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  68. def newBuilder: Builder[T, Traversable[T]]
    Attributes
    protected[this]
    Definition Classes
    GenericTraversableTemplate → HasNewBuilder
  69. def nonEmpty: Boolean
    Definition Classes
    TraversableOnce → GenTraversableOnce
  70. final def notify(): Unit
    Definition Classes
    AnyRef
  71. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  72. def par: ParIterable[T]
    Definition Classes
    Parallelizable
  73. def parCombiner: Combiner[T, ParIterable[T]]
    Attributes
    protected[this]
    Definition Classes
    TraversableLike → Parallelizable
  74. def partition(p: (T) ⇒ Boolean): (Traversable[T], Traversable[T])
    Definition Classes
    TraversableLike → GenTraversableLike
  75. def product[B >: T](implicit num: Numeric[B]): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  76. def reduce[A1 >: T](op: (A1, A1) ⇒ A1): A1
    Definition Classes
    TraversableOnce → GenTraversableOnce
  77. def reduceLeft[B >: T](op: (B, T) ⇒ B): B
    Definition Classes
    TraversableOnce
  78. def reduceLeftOption[B >: T](op: (B, T) ⇒ B): Option[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  79. def reduceOption[A1 >: T](op: (A1, A1) ⇒ A1): Option[A1]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  80. def reduceRight[B >: T](op: (T, B) ⇒ B): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  81. def reduceRightOption[B >: T](op: (T, B) ⇒ B): Option[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  82. def removeAll(t: T): HashMultiSet[T]

    Remove all instances of this value from the set.

    Remove all instances of this value from the set.

    Definition Classes
    HashMultiSetMultiSet
  83. def removeOne(t: T): HashMultiSet[T]

    Remove one instance of this value from the set.

    Remove one instance of this value from the set.

    Definition Classes
    HashMultiSetMultiSet
  84. def repr: Traversable[T]
    Definition Classes
    TraversableLike → GenTraversableLike
  85. def reversed: List[T]
    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  86. def scan[B >: T, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Traversable[T], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  87. def scanLeft[B, That](z: B)(op: (B, T) ⇒ B)(implicit bf: CanBuildFrom[Traversable[T], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
  88. def scanRight[B, That](z: B)(op: (T, B) ⇒ B)(implicit bf: CanBuildFrom[Traversable[T], B, That]): That
    Definition Classes
    TraversableLike → GenTraversableLike
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The behavior of scanRight has changed. The previous behavior can be reproduced with scanRight.reverse.

  89. def seq: Traversable[T]
    Definition Classes
    Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  90. def size: Int
    Definition Classes
    TraversableOnce → GenTraversableOnce
  91. def sizeHintIfCheap: Int
    Attributes
    protected[scala.collection]
    Definition Classes
    GenTraversableOnce
  92. def slice(from: Int, until: Int): Traversable[T]
    Definition Classes
    TraversableLike → GenTraversableLike
  93. def span(p: (T) ⇒ Boolean): (Traversable[T], Traversable[T])
    Definition Classes
    TraversableLike → GenTraversableLike
  94. def splitAt(n: Int): (Traversable[T], Traversable[T])
    Definition Classes
    TraversableLike → GenTraversableLike
  95. def stringPrefix: String
    Definition Classes
    TraversableLike → GenTraversableLike
  96. def sum[B >: T](implicit num: Numeric[B]): B
    Definition Classes
    TraversableOnce → GenTraversableOnce
  97. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  98. def tail: Traversable[T]
    Definition Classes
    TraversableLike → GenTraversableLike
  99. def tails: Iterator[Traversable[T]]
    Definition Classes
    TraversableLike
  100. def take(n: Int): Traversable[T]
    Definition Classes
    TraversableLike → GenTraversableLike
  101. def takeWhile(p: (T) ⇒ Boolean): Traversable[T]
    Definition Classes
    TraversableLike → GenTraversableLike
  102. def thisCollection: Traversable[T]
    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  103. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, T, Col[T]]): Col[T]
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  104. def toArray[B >: T](implicit arg0: ClassTag[B]): Array[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  105. def toBuffer[B >: T]: Buffer[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  106. def toCollection(repr: Traversable[T]): Traversable[T]
    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  107. def toIndexedSeq: IndexedSeq[T]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  108. def toIterable: Iterable[T]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  109. def toIterator: Iterator[T]
    Definition Classes
    TraversableLike → GenTraversableOnce
  110. def toList: List[T]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  111. def toMap[T, U](implicit ev: <:<[T, (T, U)]): Map[T, U]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  112. def toSeq: Seq[T]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  113. def toSet[B >: T]: Set[B]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  114. def toStream: Stream[T]
    Definition Classes
    TraversableLike → GenTraversableOnce
  115. def toString(): String
    Definition Classes
    TraversableLike → Any
  116. def toTraversable: Traversable[T]
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  117. def toVector: Vector[T]
    Definition Classes
    TraversableOnce → GenTraversableOnce
  118. def transpose[B](implicit asTraversable: (T) ⇒ GenTraversableOnce[B]): Traversable[Traversable[B]]
    Definition Classes
    GenericTraversableTemplate
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) transpose throws an IllegalArgumentException if collections are not uniformly sized.

  119. def union(that: MultiSet[T]): MultiSet[T]

    Return the union of another set with this set.

    Return the union of another set with this set.

    Definition Classes
    HashMultiSetMultiSet
  120. def unzip[A1, A2](implicit asPair: (T) ⇒ (A1, A2)): (Traversable[A1], Traversable[A2])
    Definition Classes
    GenericTraversableTemplate
  121. def unzip3[A1, A2, A3](implicit asTriple: (T) ⇒ (A1, A2, A3)): (Traversable[A1], Traversable[A2], Traversable[A3])
    Definition Classes
    GenericTraversableTemplate
  122. def view(from: Int, until: Int): TraversableView[T, Traversable[T]]
    Definition Classes
    TraversableLike
  123. def view: TraversableView[T, Traversable[T]]
    Definition Classes
    TraversableLike
  124. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  125. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  126. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  127. def withFilter(p: (T) ⇒ Boolean): FilterMonadic[T, Traversable[T]]
    Definition Classes
    TraversableLike → FilterMonadic

Inherited from MultiSet[T]

Inherited from Traversable[T]

Inherited from GenTraversable[T]

Inherited from GenericTraversableTemplate[T, Traversable]

Inherited from TraversableLike[T, Traversable[T]]

Inherited from GenTraversableLike[T, Traversable[T]]

Inherited from Parallelizable[T, ParIterable[T]]

Inherited from TraversableOnce[T]

Inherited from GenTraversableOnce[T]

Inherited from FilterMonadic[T, Traversable[T]]

Inherited from HasNewBuilder[T, Traversable[T]]

Inherited from AnyRef

Inherited from Any

Ungrouped