|
Scala Library
|
|
scala/collection/immutable/ListMap.scala]
protected
class
Node[B1 >: B](protected val override key : A, protected val override value : B1)
extends ListMap[A, B1]| Method Summary | |
override def
|
-
(k : A) : 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) : Option[B1]
Checks if this map maps
key to a value and return the
value if it exists. |
override def
|
isEmpty
: Boolean
Is this an empty map?
|
protected override def
|
next : ListMap[A, B1] |
override def
|
size
: Int
Returns the number of mappings in this map.
|
override def
|
update
[B2 >: B1](k : A, v : B2) : 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. |
| Methods inherited from ListMap | |
| empty, elements |
| Methods inherited from Map | |
| +, +, ++, ++, -, --, --, withDefault, withDefaultValue, transform, filter, +, incl, incl, excl, excl, mappingToString |
| Methods inherited from Map | |
| getOrElse, contains, isDefinedAt, keys, keySet, values, equals, hashCode, toString, default, projection, filterKeys, mapElements, stringPrefix |
| Methods inherited from Collection | |
| toArray |
| Methods inherited from Iterable | |
| concat, ++, map, flatMap, 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, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
| Methods inherited from Any | |
| ==, !=, isInstanceOf, asInstanceOf |
| Method Details |
override
def
size : Int
override
def
isEmpty : Boolean
key - the keykey to a value and return the
value if it exists.key - the key of the mapping of interestkey
to value. If the map contains already a
mapping for key, it will be overridden by this
function.k - ...v - ...key.
If the map does not contain a mapping for the given key, the
method returns the same map.k - ...|
Scala Library
|
|