|
Scala Library
|
|
trait
ObservableMap[A, B, This <: ObservableMap[A, B, This]]
extends Map[A, B] with Publisher[Message[(A, B)] with Undoable, This]Map class into which this abstract
class is mixed in. Class ObservableMap publishes
events of the type Message.| Method Summary | |
def
|
-=
(key : A) : Unit
Remove a key from this map, noop if key is not present.
|
def
|
clear
: Unit
Removes all mappings from the map. After this operation is
completed, the map is empty.
|
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. |
| Methods inherited from Publisher | |
| subscribe, subscribe, suspendSubscription, activateSubscription, removeSubscription, removeSubscriptions, publish |
| Methods inherited from Map | |
| +=, +=, ++=, ++=, +, +, ++, ++, -=, --=, --=, -, removeKey, put, -, --, --, 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 |
key
to value to the map. If the map already contains a
mapping for key, it will be overridden by this
function.key - The key to updatevalue - The new valuekey - the key to be removed
def
clear : Unit
|
Scala Library
|
|