Scala Library Documentation
|
|
scala/collection/jcl/MapWrapper.scala
]
trait
MapWrapper[K, E]
extends
Map[K, E]Method Summary | |
override def
|
clear
: Unit
Removes all mappings from the map. After this operation is
completed, the map is empty.
|
override def
|
contains
(key : K) : Boolean
Is the given key mapped to a value by this map?
|
override def
|
elements
: MutableIterator[(K, E)]
Creates a new iterator over all elements contained in this
object.
|
override def
|
equals
(that : Any) : Boolean
Compares two maps structurally; i.e. checks if all mappings
contained in this map are also contained in the other map,
and vice versa.
|
override def
|
get
(key : K) : Option[E]
Check if this map maps
key to a value and return the
value if it exists. |
override def
|
hashCode
: Int
A hash method compatible with
equals |
override def
|
isEmpty
: Boolean
Is this an empty map?
|
override def
|
keySet : Set[K] |
override def
|
put (key : K, elem : E) : Option[E] |
override def
|
putAll (that : Iterable[(K, E)]) : Unit |
override def
|
remove (key : K) : Option[E] |
override def
|
size
: Int
Compute the number of key-to-value mappings.
|
override def
|
toString
: String
Creates a string representation for this map.
|
protected abstract def
|
underlying : Map |
override def
|
valueSet
: MutableIterable[E]
The values of this map as a projection, which means
removals from the returned collection will remove the element from this map.
|
Methods inherited from Map | |
keys, has, update, +, +=, -, -=, projection, lense |
Methods inherited from Map | |
+=, ++=, ++=, +, ++, ++, -=, --=, --=, -, --, --, getOrElseUpdate, transform, retain, <<, clone, +=, incl, excl |
Methods inherited from Map | |
getOrElse, apply, isDefinedAt, values, default |
Methods inherited from PartialFunction | |
orElse, andThen |
Methods inherited from Function1 | |
compose |
Methods inherited from MutableIterable | |
remove, removeAll, --, -, retain, retainAll, size0 |
Methods inherited from Collection | |
toArray, stringPrefix |
Methods inherited from Iterable | |
concat, ++, map, flatMap, filter, takeWhile, dropWhile, take, drop, foreach, forall, exists, find, findIndexOf, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, copyToBuffer, sameElements, toList, mkString, mkString, addString, addString, copyToArray, hasDefiniteSize |
Methods inherited from AnyRef | |
getClass, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Class Summary | |
class
|
IteratorWrapper
extends MutableIterator[(K, E)]
|
class
|
KeySet
extends KeySet with SetWrapper[K]
|
class
|
ValueSet
extends IterableWrapper[E]
|
Method Details |
protected abstract
def
underlying : Map
override
def
size : Int
override
def
isEmpty : Boolean
true
iff the map is empty.override
def
clear : Unit
key
to a value and return the
value if it exists.key -
the key of the mapping of interestkey -
the keytrue
iff there is a mapping for key in this mapoverride
def
valueSet : MutableIterable[E]
override
def
elements : MutableIterator[(K, E)]
override
def
toString : String
override
def
hashCode : Int
equals
that -
the other maptrue
iff both maps contain exactly the same mappings.
Scala Library Documentation
|
|