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), +=, +=, ++=, ++=, +, +, ++, ++, -=, --=, --=, -, removeKey, put, -, --, --, clear, getOrElseUpdate, transform, retain, <<, clone, readOnly, +=, incl, excl
Methods inherited from Map
size (abstract), get (abstract), getOrElse, isEmpty, apply, contains, isDefinedAt, keys, keySet, values, equals, hashCode, toString, default, projection, filterKeys, mapElements, stringPrefix
Methods inherited from Collection
toArray
Methods inherited from Iterable
elements (abstract), concat, ++, map, flatMap, filter, partition, takeWhile, dropWhile, take, drop, foreach, forall, exists, find, findIndexOf, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, copyToBuffer, sameElements, toList, toSeq, toStream, mkString, mkString, mkString, addString, 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