MapFactory

trait MapFactory[+CC[_, _]] extends Serializable
Companion
object
class Object
trait Matchable
class Any
class Delegate[C]
object Map
object SeqMap
object Map
object SeqMap
object MapView
object TrieMap
object HashMap
object ListMap
object Map
object SeqMap
object TreeSeqMap
object VectorMap
object HashMap
object ListMap

Value members

Abstract methods

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

An empty Map

An empty Map

def from[K, V](it: IterableOnce[(K, V)]): CC[K, V]

A collection of type Map generated from given iterable object.

A collection of type Map generated from given iterable object.

Implicitly added by toFactory
Value Params
it

Source collection

Returns

A collection of type C containing the same elements as the source collection it.

def fromSpecific(from: From)(it: IterableOnce[A]): C
Implicitly added by toBuildFrom
Implicitly added by toFactory

Get a Builder for the collection.

Get a Builder for the collection. For non-strict collection types this will use an intermediate buffer. Building collections with fromSpecific is preferred because it can be lazy for lazy collections.

def newBuilder(from: From): Builder[A, C]
Implicitly added by toBuildFrom

Get a Builder for the collection.

Get a Builder for the collection. For non-strict collection types this will use an intermediate buffer. Building collections with fromSpecific is preferred because it can be lazy for lazy collections.

def newBuilder[K, V]: Builder[(K, V), CC[K, V]]

The default builder for Map objects.

The default builder for Map objects.

Concrete methods

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

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

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

def toFactory(from: From): Factory[A, C]
Implicitly added by toBuildFrom

Partially apply a BuildFrom to a Factory

Partially apply a BuildFrom to a Factory

Deprecated methods

@deprecated("Use newBuilder() instead of apply()", "2.13.0") @inline
def apply(from: From): Builder[A, C]
Implicitly added by toBuildFrom
Deprecated

Implicits

Implicits

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

The default Factory instance for maps.

The default Factory instance for maps.