in scala/collection/mutable
class MapProxy

class MapProxy[A,B](m: Map[A,B])
extends Map[A,B]
with ScalaObject
with MapProxy[A,B]

This is a simple wrapper class for scala.collection.mutable.Map. It is most useful for assembling customized map abstractions dynamically using object composition and forwarding.
Author:
Matthias Zenger
Version:
1.0, 21/07/2003

Method Summary
override def ++=(map: Iterable[Tuple2[A,B]]): Unit
     This method adds all the mappings provided by an iterator of parameter map to the map.
override def ++=(it: Iterator[Tuple2[A,B]]): Unit
     This method adds all the mappings provided by an iterator of parameter map to the map.
override def --=(keys: Iterable[A]): Unit
     This method removes all the mappings for keys provided by an iterator over the elements of the keys object.
override def --=(it: Iterator[A]): Unit
     This method removes all the mappings for keys provided by an iterator over the elements of the keys object.
  def -=(key: A): Unit
     This method removes a mapping from the given key.
override def <<(cmd: Message[Tuple2[A,B]]): Unit
     Send a message to this scriptable object.
override def clear: Unit
     Removes all mappings from the map.
override def clone(): Map[A,B]
     Return a clone of this map.
override def excl(keys: A*): Unit
     This method will remove all the mappings for the given sequence of keys from the map.
override def filter(p: (A,B) => Boolean): Unit
     This method removes all the mappings for which the predicate p returns false.
override def incl(mappings: Tuple2[A,B]*): Unit
     incl can be used to add many mappings at the same time to the map.
override def map(f: (A,B) => B): Unit
     This function transforms all the values of mappings contained in this map with function f.
override def mappingToString(p: Tuple2[A,B]): String
     This method controls how a mapping is represented in the string representation provided by method toString.
override def toString(): String
     Returns a string representation of this map which shows all the mappings.
  def update(key: A, value: B): Unit
     This method allows one to add a new mapping from key to value to the map.

Methods inherited from java/lang/Object-class
eq, finalize, getClass, notify, notifyAll, synchronized, wait, wait, wait

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

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

Methods inherited from scala/Proxy-class
equals, hashCode

Methods inherited from scala/collection/MapProxy-class
apply, contains, foreach, get, isDefinedAt, isEmpty, keys, size, toList, values

Methods inherited from scala/collection/mutable/Map-class
+=

Method Detail

update

  def update(key: A, value: B): Unit
This method allows one to add a new mapping from key to value to the map. If the map already contains a mapping for key, it will be overridden by this function.

++=

  override def ++=(map: Iterable[Tuple2[A,B]]): Unit
This method adds all the mappings provided by an iterator of parameter map to the map.

++=

  override def ++=(it: Iterator[Tuple2[A,B]]): Unit
This method adds all the mappings provided by an iterator of parameter map to the map.

incl

  override def incl(mappings: Tuple2[A,B]*): Unit
incl can be used to add many mappings at the same time to the map. The method assumes that a mapping is represented by a Pair object who's first component denotes the key, and who's second component refers to the value.

-=

  def -=(key: A): Unit
This method removes a mapping from the given key. If the map does not contain a mapping for the given key, the method does nothing.

--=

  override def --=(keys: Iterable[A]): Unit
This method removes all the mappings for keys provided by an iterator over the elements of the keys object.

--=

  override def --=(it: Iterator[A]): Unit
This method removes all the mappings for keys provided by an iterator over the elements of the keys object.

excl

  override def excl(keys: A*): Unit
This method will remove all the mappings for the given sequence of keys from the map.

clear

  override def clear: Unit
Removes all mappings from the map. After this operation is completed, the map is empty.

map

  override def map(f: (A,B) => B): Unit
This function transforms all the values of mappings contained in this map with function f.

filter

  override def filter(p: (A,B) => Boolean): Unit
This method removes all the mappings for which the predicate p returns false.

toString

  override def toString(): String
Returns a string representation of this map which shows all the mappings.

mappingToString

  override def mappingToString(p: Tuple2[A,B]): String
This method controls how a mapping is represented in the string representation provided by method toString.

<<

  override def <<(cmd: Message[Tuple2[A,B]]): Unit
Send a message to this scriptable object.
Parameters:
cmd - the message to send.

clone

  override def clone(): Map[A,B]
Return a clone of this map.
Returns:
an map with the same elements.