in scala/collection/mutable
trait MultiMap

trait MultiMap[A,B]()
extends Map[A,Set[B]]
with ScalaObject

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 java/lang/Object-class
eq, finalize, getClass, ne, notify, notifyAll, synchronized, wait, wait, wait

Methods inherited from scala/Any-class
!=, ==, asInstanceOf, isInstanceOf, match

Methods inherited from scala/Iterable-class
/:, :\, concat, elements, exists, find, foldLeft, foldRight, forall, foreach, sameElements

Methods inherited from scala/ScalaObject-class
getScalaType

Methods inherited from scala/collection/Map-class
apply, contains, equals, exists, forall, foreach, get, isDefinedAt, isEmpty, keys, size, toList, values

Methods inherited from scala/collection/mutable/Map-class
++=, ++=, +=, --=, --=, -=, <<, MapTo, clear, clone, excl, filter, hashCode, incl, map, mappingToString, toString, update

Method Detail

makeSet

  protected def makeSet: Set[B]

add

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

remove

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

entryExists

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