|
Scala
1.4.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 .
|
abstract
|
def self: Map[A,B]
|
override
|
def toString(): String
|
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 |
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/ScalaObject-class |
getScalaType |
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 |
+=, MapTo |
Method Detail |
abstract def self: Map[A,B]
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.
key
-
value
-
override def ++=(map: Iterable[Tuple2[A,B]]): Unit
map
to the map.
map
-
override def ++=(it: Iterator[Tuple2[A,B]]): Unit
map
to the map.
it
-
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.
mappings
-
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.
keys
-
override def --=(it: Iterator[A]): Unit
keys
object.
it
-
override def excl(keys: A*): Unit
keys
-
override def clear: Unit
override def map(f: (A,B) => B): Unit
f
.
f
-
override def filter(p: (A,B) => Boolean): Unit
p
returns false
.
p
-
override def toString(): String
override def mappingToString(p: Tuple2[A,B]): String
toString
.
p
-
override def <<(cmd: Message[Tuple2[A,B]]): Unit
cmd
-
the message to send.
override def clone(): Map[A,B]
|
Scala
1.4.0.3 |
|||