Packages

object ListMap extends MapFactory[ListMap]

This object provides a set of operations to create ListMap values.

Note that each element insertion takes O(n) time, which means that creating a list map with n elements will take O(n2) time. This makes the builder suitable only for a small number of elements.

Annotations
@SerialVersionUID()
Source
ListMap.scala
See also

"Scala's Collection Library overview" section on List Maps for more information.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ListMap
  2. MapFactory
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def apply[K, V](elems: (K, V)*): ListMap[K, V]

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

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

    Definition Classes
    MapFactory
  2. def empty[K, V]: ListMap[K, V]

    An empty Map

    An empty Map

    Definition Classes
    ListMapMapFactory
  3. def from[K, V](it: IterableOnce[(K, V)]): ListMap[K, V]

    A collection of type Map generated from given iterable object.

    A collection of type Map generated from given iterable object.

    Definition Classes
    ListMapMapFactory
  4. implicit def mapFactory[K, V]: Factory[(K, V), ListMap[K, V]]

    The default Factory instance for maps.

    The default Factory instance for maps.

    Definition Classes
    MapFactory
  5. def newBuilder[K, V]: ReusableBuilder[(K, V), ListMap[K, V]]

    Returns a new ListMap builder

    Returns a new ListMap builder

    The implementation safely handles additions after result() without calling clear()

    K

    the map key type

    V

    the map value type

    Definition Classes
    ListMapMapFactory