|
Scala 2
|
class
Node
extends
scala.collection.immutable.ListMap[A,B] with
scala.ScalaObjectConstructor Summary | |
def
this
( key : A , value : B )
|
Def Summary | |
override
|
def
-
( k : A )
: scala.collection.immutable.ListMap[A,B]
This 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 )
: B
Retrieve 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[B]
Check if this map maps key to a value and return the
value if it exists.
|
override
|
def
hashCode
: scala.Int
|
override
|
def
isEmpty
: scala.Boolean
Is this an empty map? |
override
|
def
size
: scala.Int
Returns the number of mappings in this map. |
override
|
def
toList
: scala.List[scala.Tuple2[A,B]]
This return a list of key-value pairs. |
override
|
def
update
( k : A , v : B )
: scala.collection.immutable.ListMap[A,B]
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.
|
Constructor Detail |
def
this
( key : A , value : B )
Def Detail |
def
-
( k : A ) : scala.collection.immutable.ListMap[A,B]
key
.
If the map does not contain a mapping for the given key, the
method returns the same map.def
apply
( k : A ) : B
def
get
( k : A ) : scala.Option[B]
key
to a value and return the
value if it exists.def
hashCode
: scala.Int
def
isEmpty
: scala.Boolean
def
size
: scala.Int
def
toList
: scala.List[scala.Tuple2[A,B]]
def
update
( k : A , v : B ) : scala.collection.immutable.ListMap[A,B]
key
to value
. If the map contains already a
mapping for key
, it will be overridden by this
function.