AnyRefMap

scala.collection.mutable.AnyRefMap
See theAnyRefMap companion class
object AnyRefMap

Attributes

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

Members list

Type members

Classlikes

final class AnyRefMapBuilder[K <: AnyRef, V] extends ReusableBuilder[(K, V), AnyRefMap[K, V]]

A builder for instances of AnyRefMap.

A builder for instances of AnyRefMap.

This builder can be reused to create multiple instances.

Attributes

Source
AnyRefMap.scala
Supertypes
trait ReusableBuilder[(K, V), AnyRefMap[K, V]]
trait Builder[(K, V), AnyRefMap[K, V]]
trait Growable[(K, V)]
trait Clearable
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def apply[K <: AnyRef, V](elems: (K, V)*): AnyRefMap[K, V]

Creates a new AnyRefMap with zero or more key/value pairs.

Creates a new AnyRefMap with zero or more key/value pairs.

Attributes

Source
AnyRefMap.scala
def empty[K <: AnyRef, V]: AnyRefMap[K, V]

Creates a new empty AnyRefMap.

Creates a new empty AnyRefMap.

Attributes

Source
AnyRefMap.scala
def from[K <: AnyRef, V](source: IterableOnce[(K, V)]): AnyRefMap[K, V]

Creates a new AnyRefMap from an existing source collection.

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 the keys

V

the type of the values

Value parameters

source

Source collection

Attributes

Returns

a new AnyRefMap with the elements of source

Source
AnyRefMap.scala
def fromZip[K <: AnyRef, V](keys: Array[K], values: Array[V]): AnyRefMap[K, V]

Creates a new AnyRefMap from arrays of keys and values.

Creates a new AnyRefMap from arrays of keys and values. Equivalent to but more efficient than AnyRefMap((keys zip values): _*).

Attributes

Source
AnyRefMap.scala
def fromZip[K <: AnyRef, V](keys: Iterable[K], values: Iterable[V]): AnyRefMap[K, V]

Creates a new AnyRefMap from keys and values.

Creates a new AnyRefMap from keys and values. Equivalent to but more efficient than AnyRefMap((keys zip values): _*).

Attributes

Source
AnyRefMap.scala
def newBuilder[K <: AnyRef, V]: ReusableBuilder[(K, V), AnyRefMap[K, V]]

Attributes

Source
AnyRefMap.scala
def withDefault[K <: AnyRef, V](default: K => V): AnyRefMap[K, V]

Creates a new empty AnyRefMap with the supplied default

Creates a new empty AnyRefMap with the supplied default

Attributes

Source
AnyRefMap.scala

Implicits

Implicits

implicit def buildFromAnyRefMap[K <: AnyRef, V]: BuildFrom[AnyRefMap[_, _], (K, V), AnyRefMap[K, V]]

Attributes

Source
AnyRefMap.scala
implicit def iterableFactory[K <: AnyRef, V]: Factory[(K, V), AnyRefMap[K, V]]

Attributes

Source
AnyRefMap.scala
implicit def toBuildFrom[K <: AnyRef, V](factory: AnyRefMap.type): BuildFrom[Any, (K, V), AnyRefMap[K, V]]

Attributes

Source
AnyRefMap.scala
implicit def toFactory[K <: AnyRef, V](dummy: AnyRefMap.type): Factory[(K, V), AnyRefMap[K, V]]

Attributes

Source
AnyRefMap.scala