|
Scala
1.3.0.3 |
|||
scala.collection.mutable.Map.
It is most useful for assembling customized map abstractions
dynamically using object composition and forwarding.
| 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 |
def update(key: A, value: B): Unit
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
map to the map.
override def ++=(it: Iterator[Tuple2[A,B]]): Unit
map to the map.
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
key.
If the map does not contain a mapping for the given key, the
method does nothing.
override def --=(keys: Iterable[A]): Unit
keys object.
override def --=(it: Iterator[A]): Unit
keys object.
override def excl(keys: A*): Unit
override def clear: Unit
override def map(f: (A,B) => B): Unit
f.
override def filter(p: (A,B) => Boolean): Unit
p returns false.
override def toString(): String
override def mappingToString(p: Tuple2[A,B]): String
toString.
override def <<(cmd: Message[Tuple2[A,B]]): Unit
cmd -
the message to send.
override def clone(): Map[A,B]
|
Scala
1.3.0.3 |
|||