ReadOnlyMap

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

A class for the reading part of mutable or immutable maps.

Attributes

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

Members list

Value members

Abstract methods

def iterator: Iterator[(Key, Value)]
def lookup(x: Key): Value | Null
def size: Int
def valuesIterator: Iterator[Value]

Concrete methods

def apply(key: Key): Value
def contains(key: Key): Boolean
def get(key: Key): Option[Value]
def getOrElse(key: Key, value: => Value): Value
def toArray: Array[(Key, Value)]
def toSeq: Seq[(Key, Value)]