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

Members list

Concise view

Type members

Classlikes

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

Attributes

Source:
Factory.scala
Graph
Supertypes
trait MapFactory[C]
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

Attributes

CC

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

K

Type of keys

V

Type of values

factory

The factory to fix the key and value types

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