Attributes
- Companion
- class
- Deprecated
-
[Since version 2.13.16]Use `scala.collection.mutable.HashMap` instead for better performance. - Source
- AnyRefMap.scala
- Graph
-
- Supertypes
- Self type
-
AnyRefMap.type
Members list
Type members
Classlikes
A builder for instances of AnyRefMap.
A builder for instances of AnyRefMap.
This builder can be reused to create multiple instances.
Type parameters
- K
-
the type of keys, must be a subtype of
AnyRef - V
-
the type of values
Attributes
- Source
- AnyRefMap.scala
- Supertypes
Value members
Concrete methods
Creates a new AnyRefMap with zero or more key/value pairs.
Creates a new AnyRefMap with zero or more key/value pairs.
Type parameters
- K
-
the type of keys, must be a subtype of
AnyRef - V
-
the type of values
Value parameters
- elems
-
the key-value pairs to initialize the map with
Attributes
- Source
- AnyRefMap.scala
Creates a new empty AnyRefMap.
Creates a new empty AnyRefMap.
Type parameters
- K
-
the type of keys, must be a subtype of
AnyRef - V
-
the type of values
Attributes
- Source
- AnyRefMap.scala
Creates a new AnyRefMap from an existing source collection. A source collection which is already an AnyRefMap gets cloned.
Creates a new AnyRefMap from an existing source collection. A source collection which is already an AnyRefMap gets cloned.
Type parameters
- K
-
the type of keys, must be a subtype of
AnyRef - V
-
the type of values
Value parameters
- source
-
Source collection
Attributes
- Returns
-
a new
AnyRefMapwith the elements ofsource - Source
- AnyRefMap.scala
Creates a new AnyRefMap from arrays of keys and values. Equivalent to but more efficient than AnyRefMap((keys zip values): _*).
Creates a new AnyRefMap from arrays of keys and values. Equivalent to but more efficient than AnyRefMap((keys zip values): _*).
Type parameters
- K
-
the type of keys, must be a subtype of
AnyRef - V
-
the type of values
Value parameters
- keys
-
the array of keys
- values
-
the array of values, paired positionally with
keys
Attributes
- Source
- AnyRefMap.scala
Creates a new AnyRefMap from keys and values. Equivalent to but more efficient than AnyRefMap((keys zip values): _*).
Creates a new AnyRefMap from keys and values. Equivalent to but more efficient than AnyRefMap((keys zip values): _*).
Type parameters
- K
-
the type of keys, must be a subtype of
AnyRef - V
-
the type of values
Value parameters
- keys
-
the collection of keys
- values
-
the collection of values, paired positionally with
keys
Attributes
- Source
- AnyRefMap.scala
Attributes
- Source
- AnyRefMap.scala
Creates a new empty AnyRefMap with the supplied default.
Creates a new empty AnyRefMap with the supplied default.
Type parameters
- K
-
the type of keys, must be a subtype of
AnyRef - V
-
the type of values
Value parameters
- default
-
the function mapping keys to default values
Attributes
- Source
- AnyRefMap.scala
Implicits
Implicits
Attributes
- Source
- AnyRefMap.scala
Attributes
- Source
- AnyRefMap.scala
Attributes
- Source
- AnyRefMap.scala