EqHashMap

dotty.tools.dotc.util.EqHashMap
class EqHashMap[Key, Value](initialCapacity: Int, capacityMultiple: Int) extends GenericHashMap[Key, Value]

A specialized implementation of GenericHashMap with identity hash and eq as comparison.

Attributes

Graph
Supertypes
class GenericHashMap[Key, Value]
class MutableMap[Key, Value]
class ReadOnlyMap[Key, Value]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def copyFrom(oldTable: Array[AnyRef | Null]): Unit

Attributes

Definition Classes
final def hash(x: Key): Int

Hashcode is identityHashCode left-shifted by 1, so lowest bit is not lost when taking the index.

Hashcode is identityHashCode left-shifted by 1, so lowest bit is not lost when taking the index.

Attributes

final def isEqual(x: Key, y: Key): Boolean

Equality, by default eq, but can be overridden

Equality, by default eq, but can be overridden

Attributes

override def lookup(key: Key): Value | Null

Attributes

Definition Classes
override def update(key: Key, value: Value): Unit

Attributes

Definition Classes

Inherited methods

def -=(k: Key): MutableMap.this.type

Attributes

Inherited from:
MutableMap
def apply(key: Key): Value

Attributes

Inherited from:
ReadOnlyMap
def clear(resetToInitial: Boolean): Unit

Remove all elements from this table and set back to initial configuration

Remove all elements from this table and set back to initial configuration

Attributes

Inherited from:
GenericHashMap
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
def getOrElseUpdate(key: Key, value: => Value): Value

Attributes

Inherited from:
GenericHashMap

Attributes

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

Attributes

Inherited from:
GenericHashMap

Attributes

Inherited from:
GenericHashMap
def remove(key: Key): Value | Null

Attributes

Inherited from:
GenericHashMap
def size: Int

The number of elements in the set

The number of elements in the set

Attributes

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

Attributes

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

Attributes

Inherited from:
ReadOnlyMap
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Inherited from:
GenericHashMap
def valuesIterator: Iterator[Value]

Attributes

Inherited from:
GenericHashMap