ListMap

@SerialVersionUID(3L) object ListMap extends MapFactory[[K, V] =>> ListMap[K, V]]

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

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.

See also

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

Companion
class
trait MapFactory[[K, V] =>> ListMap[K, V]]
class Object
trait Matchable
class Any

Value members

Concrete methods

def empty[K, V]: ListMap[K, V]
def from[K, V](it: IterableOnce[(K, V)]): ListMap[K, V]
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()

Type Params
K

the map key type

V

the map value type

Inherited methods

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.

Inherited from
MapFactory

Implicits

Inherited implicits

implicit def mapFactory[K, V]: Factory[(K, V), ListMap[K, V]]

The default Factory instance for maps.

The default Factory instance for maps.

Inherited from
MapFactory