MapFactory

scala.collection.MapFactory$
See theMapFactory companion trait
object MapFactory

Attributes

Companion
trait
Source
Factory.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
MapFactory.type

Members list

Type members

Classlikes

class Delegate[C[_, _]](delegate: MapFactory[C]) extends MapFactory[C]

Attributes

Source
Factory.scala
Supertypes
trait MapFactory[C]
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
object Map.type
object SeqMap.type
object Map.type
object SeqMap.type

Implicits

Implicits

implicit def toBuildFrom[K, V, CC[_, _]](factory: MapFactory[CC]): BuildFrom[Any, (K, V), CC[K, V]]

Attributes

Source
Factory.scala
implicit def toFactory[K, V, CC[_, _]](factory: MapFactory[CC]): Factory[(K, V), CC[K, V]]

Fixes the key and value types of factory to K and V, respectively

Fixes the key and value types of factory to K and V, respectively

Type parameters

CC

Collection type constructor of the factory (e.g. Map, HashMap, etc.)

K

Type of keys

V

Type of values

Value parameters

factory

The factory to fix the key and value types

Attributes

Returns

A Factory that uses the given factory to build a map with keys of type K and values of type V

Source
Factory.scala