OpenHashMap

scala.collection.mutable.OpenHashMap
See theOpenHashMap companion class

Attributes

Companion
class
Deprecated
[Since version 2.13.0] Use HashMap or one of the specialized versions (LongMap, AnyRefMap) instead of OpenHashMap
Source
OpenHashMap.scala
Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def empty[K, V]: OpenHashMap[K, V]

An empty Map.

An empty Map.

Type parameters

K

the type of the keys

V

the type of the values

Attributes

Source
OpenHashMap.scala
def from[K, V](it: IterableOnce[(K, V)]^): OpenHashMap[K, V]

A collection of type Map generated from given iterable object.

A collection of type Map generated from given iterable object.

Type parameters

K

the type of the keys

V

the type of the values

Value parameters

it

the source collection of key-value pairs

Attributes

Source
OpenHashMap.scala
def newBuilder[K, V]: Builder[(K, V), OpenHashMap[K, V]]

The default builder for Map objects.

The default builder for Map objects.

Type parameters

K

the type of the keys

V

the type of the values

Attributes

Source
OpenHashMap.scala

Inherited methods

def apply[K, V](elems: (K, V)*): OpenHashMap[K, V]

A collection of type Map that contains given key/value bindings.

A collection of type Map that contains given key/value bindings.

Type parameters

K

the type of the keys

V

the type of the values

Value parameters

elems

the key-value pairs to include in the map

Attributes

Inherited from:
MapFactory
Source
Factory.scala

Implicits

Inherited implicits

implicit def mapFactory[K, V]: Factory[(K, V), OpenHashMap[K, V]]

The default Factory instance for maps.

The default Factory instance for maps.

Type parameters

K

the type of the keys

V

the type of the values

Attributes

Inherited from:
MapFactory
Source
Factory.scala