MutableMap

dotty.tools.dotc.util.MutableMap
abstract class MutableMap[Key, Value] extends ReadOnlyMap[Key, Value]

A common class for lightweight mutable maps.

Attributes

Graph
Supertypes
class ReadOnlyMap[Key, Value]
class Object
trait Matchable
class Any
Known subtypes
class GenericHashMap[Key, Value]
class EqHashMap[Key, Value]
class HashMap[Key, Value]

Members list

Value members

Abstract methods

def clear(resetToInitial: Boolean): Unit

Remove all bindings from this map.

Remove all bindings from this map.

Value parameters

resetToInitial

If true, set back to initial configuration, which includes reallocating tables.

Attributes

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): this.type

Inherited methods

def apply(key: Key): Value

Attributes

Inherited from:
ReadOnlyMap
def contains(key: Key): Boolean

Attributes

Inherited from:
ReadOnlyMap
def get(key: Key): Option[Value]

Attributes

Inherited from:
ReadOnlyMap
def getOrElse(key: Key, value: => Value): Value

Attributes

Inherited from:
ReadOnlyMap

Attributes

Inherited from:
ReadOnlyMap
def iterator: Iterator[(Key, Value)]

Attributes

Inherited from:
ReadOnlyMap

Attributes

Inherited from:
ReadOnlyMap
def lookup(x: Key): Value | Null

Attributes

Inherited from:
ReadOnlyMap
def size: Int

Attributes

Inherited from:
ReadOnlyMap
def toArray: Array[(Key, Value)]

Attributes

Inherited from:
ReadOnlyMap
def toSeq: Seq[(Key, Value)]

Attributes

Inherited from:
ReadOnlyMap
def valuesIterator: Iterator[Value]

Attributes

Inherited from:
ReadOnlyMap