MutableMap

abstract class MutableMap[Key, Value] extends ReadOnlyMap[Key, Value]

A common class for lightweight mutable maps.

class ReadOnlyMap[Key, Value]
class Object
trait Matchable
class Any
class GenericHashMap[Key, Value]
class EqHashMap[Key, Value]
class HashMap[Key, Value]

Value members

Abstract methods

def clear(): Unit
def getOrElseUpdate(key: Key, value: => Value): Value
def remove(k: Key): Value | Null
def update(k: Key, v: Value): Unit

Concrete methods

def -=(k: Key): MutableMap[Key, Value]

Inherited methods

def apply(key: Key): Value
Inherited from:
ReadOnlyMap
def contains(key: Key): Boolean
Inherited from:
ReadOnlyMap
def get(key: Key): Option[Value]
Inherited from:
ReadOnlyMap
def getOrElse(key: Key, value: => Value): Value
Inherited from:
ReadOnlyMap
Inherited from:
ReadOnlyMap
def iterator: Iterator[(Key, Value)]
Inherited from:
ReadOnlyMap
Inherited from:
ReadOnlyMap
def lookup(x: Key): Value | Null
Inherited from:
ReadOnlyMap
def size: Int
Inherited from:
ReadOnlyMap
def toArray: Array[(Key, Value)]
Inherited from:
ReadOnlyMap
def toSeq: Seq[(Key, Value)]
Inherited from:
ReadOnlyMap
Inherited from:
ReadOnlyMap