scala.collection.mutable
trait MultiMap

[source: `scala/collection/mutable/MultiMap.scala`]

`` `trait` MultiMap[A, B]
  `extends` Map[A, Set[B]]

  This class is typically used as a mixin. It turns maps which map `A` to `Set[B]` objects into multi maps which map `A` to `B` objects.

Author
  Matthias Zenger
Version
  1.0, 08/07/2003

Method Summary
`def` | add (key : A, value : B) : Unit
`def` | entryExists (key : A, p : (B) => Boolean) : Boolean
`protected def` | makeSet : Set[B]
`def` | remove (key : A, value : B) : Unit

Methods inherited from Map
update (abstract), -= (abstract), +=, +=, ++=, ++=, +, +, ++, ++, -=, --=, --=, -, -, --, --, clear, getOrElseUpdate, transform, retain, <<, clone, +=, incl, excl

Methods inherited from Map
size (abstract), get (abstract), getOrElse, isEmpty, apply, contains, isDefinedAt, keys, keySet, values, equals, hashCode, toString, default, projection

Methods inherited from Collection
toArray, stringPrefix

Methods inherited from Iterable
elements (abstract), concat, ++, map, flatMap, filter, takeWhile, dropWhile, take, drop, foreach, forall, exists, find, findIndexOf, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, copyToBuffer, sameElements, toList, mkString, mkString, addString, addString, copyToArray, hasDefiniteSize

Methods inherited from PartialFunction
orElse, andThen

Methods inherited from Function1
compose

Methods inherited from AnyRef
getClass, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized

Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf

Method Details

`protected` `def` makeSet : Set[B]

`` `def` add(key : A, value : B) : Unit

`` `def` remove(key : A, value : B) : Unit

`` `def` entryExists(key : A, p : (B) => Boolean) : Boolean