Packages

c

scala.collection.generic

GenMapFactory

abstract class GenMapFactory[CC[A, B] <: GenMap[A, B] with GenMapLike[A, B, CC[A, B]]] extends AnyRef

A template for companion objects of Map and subclasses thereof.

Source
GenMapFactory.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GenMapFactory
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GenMapFactory()

Type Members

  1. type Coll = CC[_, _]

    The type constructor of the collection that can be built by this factory

  2. class MapCanBuildFrom[A, B] extends CanBuildFrom[Coll, (A, B), CC[A, B]]

    The standard CanBuildFrom class for maps.

Abstract Value Members

  1. abstract def empty[A, B]: CC[A, B]

    An empty Map

Concrete Value Members

  1. def apply[A, B](elems: (A, B)*): CC[A, B]

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

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

    A

    the type of the keys

    B

    the type of the associated values

    elems

    the key/value pairs that make up the map

    returns

    a new map consisting key/value pairs given by elems.

  2. def newBuilder[A, B]: Builder[(A, B), CC[A, B]]

    The default builder for Map objects.

    The default builder for Map objects.

    A

    the type of the keys

    B

    the type of the associated values