HashMap

scala.collection.immutable.HashMap
See theHashMap companion class
object HashMap extends MapFactory[HashMap]

This object provides a set of operations to create Iterable values.

Attributes

Companion
class
Source
HashMap.scala
Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Self type
HashMap.type

Members list

Value members

Concrete methods

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

An empty Map.

An empty Map.

Type parameters

K

the type of the keys

V

the type of the values

Attributes

Source
HashMap.scala
def from[K, V](source: IterableOnce[(K, V)]^): HashMap[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
HashMap.scala
def newBuilder[K, V]: ReusableBuilder[(K, V), HashMap[K, V]]

Creates a new Builder which can be reused after calling result() without an intermediate call to clear() in order to build multiple related results.

Creates a new Builder which can be reused after calling result() without an intermediate call to clear() in order to build multiple related results.

Type parameters

K

the key type of the HashMap

V

the value type of the HashMap

Attributes

Source
HashMap.scala

Inherited methods

def apply[K, V](elems: (K, V)*): HashMap[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), HashMap[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