|
|
Scala 2.3.3
|
protected
class
Node
[B1 >: B]
extends scala.collection.immutable.ListMap[A, B1]
with scala.ScalaObject
| Constructor Summary | |
def
this
(key: A, value: B1)
|
|
| Val Summary | |
override protected
|
val
key
: A
|
override protected
|
val
value
: B1
|
| Def Summary | |
override
|
def
-
(k: A)
: scala.collection.immutable.ListMap[A, B1]
Creates a new mapping without the given key.
If the map does not contain a mapping for the given key, the
method returns the same map.
|
override
|
def
apply
(k: A)
: B1
Retrieves the value which is associated with the given key. This method throws an exception if there is no mapping from the given key to a value. |
override
|
def
get
(k: A)
: scala.Option[B1]
Checks if this map maps key to a value and return the
value if it exists.
|
override
|
def
isEmpty
: scala.Boolean
Is this an empty map? |
override protected
|
def
next
: scala.collection.immutable.ListMap[A, B1]
|
override
|
def
size
: scala.Int
Returns the number of mappings in this map. |
override
|
def
update
[B2 >: B1]
(k: A, v: B2)
: scala.collection.immutable.ListMap[A, B2]
This method allows one to create a new map with an additional mapping from key
to value. If the map contains already a
mapping for key, it will be overridden by this
function.
|
| Def inherited from scala.collection.immutable.ListMap[A, B1] | |
| - , elements, empty, get, key, next, size, update, value |
| Constructor Detail |
| Val Detail |
| Def Detail |
override
def
-
(k: A): scala.collection.immutable.ListMap[A, B1]
key.
If the map does not contain a mapping for the given key, the
method returns the same map.k - ...
key - the key
override
def
get
(k: A): scala.Option[B1]
key to a value and return the
value if it exists.key - the key of the mapping of interest
override
def
isEmpty
: scala.Boolean
override protected
def
next
: scala.collection.immutable.ListMap[A, B1]
override
def
size
: scala.Int
key
to value. If the map contains already a
mapping for key, it will be overridden by this
function.k - ...
v - ...