in scala/collection/mutable
class ObservableMap

abstract class ObservableMap[A,B,This<:ObservableMap[A,B,This]]()
extends Map[A,B]
with ScalaObject
with Publisher[Message[Tuple2[A,B]] with Undoable ,This]

This class is typically used as a mixin. It adds a subscription mechanism to the Map class into which this abstract class is mixed in. Class ObservableMap publishes events of the type Message.
Author:
Matthias Zenger
Version:
1.0, 08/07/2003

Method Summary
override def -=(key: A): Unit
     This method removes a mapping from the given key.
override def clear: Unit
     Removes all mappings from the map.
override 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, 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, clone, excl, filter, hashCode, incl, map, mappingToString, toString

Methods inherited from scala/collection/mutable/Publisher-class
activateSubscription, publish, removeSubscription, removeSubscriptions, subscribe, subscribe, suspendSubscription

Method Detail

update

  override 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.
Parameters:
key -
value -

-=

  override 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.

clear

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