MapFactory

scala.collection.MapFactory
See theMapFactory companion object
trait MapFactory[+CC[_, _]] extends Serializable

Attributes

Companion
object
Source
Factory.scala
Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
object TrieMap.type
object HashMap.type
object ListMap.type
object Map.type
object SeqMap.type
object TreeSeqMap.type
object VectorMap.type
object HashMap.type
object LinkedHashMap.type
object ListMap.type
object OpenHashMap.type
object WeakHashMap.type
class Delegate[C]
object Map.type
object SeqMap.type
object Map.type
object SeqMap.type
object MapView.type
Show all

Members list

Value members

Abstract methods

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

An empty Map

An empty Map

Attributes

Source
Factory.scala
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.

Attributes

Source
Factory.scala
def fromSpecific(from: From)(it: IterableOnce[A]): C
Implicitly added by toBuildFrom

Attributes

Source
BuildFrom.scala
def fromSpecific(it: IterableOnce[A]): C
Implicitly added by toFactory

Value parameters

it

Source collection

Attributes

Returns

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

Source
Factory.scala
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.

Attributes

Source
BuildFrom.scala
def newBuilder: Builder[A, C]
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.

Attributes

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

The default builder for Map objects.

The default builder for Map objects.

Attributes

Source
Factory.scala

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.

Attributes

Source
Factory.scala
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

Attributes

Source
BuildFrom.scala

Deprecated methods

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

Attributes

Deprecated
true
Source
BuildFrom.scala

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.

Attributes

Source
Factory.scala