Map

scala.collection.immutable.Map
See theMap companion trait
object Map extends MapFactory[Map]

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

Attributes

Companion
trait
Source
Map.scala
Graph
Supertypes
trait MapFactory[Map]
trait Serializable
class Object
trait Matchable
class Any
Self type
Map.type

Members list

Type members

Classlikes

final class Map1[K, +V](key1: K, value1: V) extends AbstractMap[K, V], StrictOptimizedIterableOps[(K, V), Iterable, Map[K, V]], Serializable

Attributes

Source
Map.scala
Supertypes
trait Serializable
trait StrictOptimizedIterableOps[(K, V), Iterable, Map[K, V]]
class AbstractMap[K, V]
trait Map[K, V]
trait MapOps[K, V, Map, Map[K, V]]
trait Iterable[(K, V)]
class AbstractMap[K, V]
trait Map[K, V]
trait Pure
trait Equals
trait MapOps[K, V, Map, Map[K, V]]
trait PartialFunction[K, V]
trait K -> V
class AbstractIterable[(K, V)]
trait Iterable[(K, V)]
trait IterableOps[(K, V), Iterable, Map[K, V]]
trait IterableOnceOps[(K, V), Iterable, Map[K, V]]
trait IterableOnce[(K, V)]
class Object
trait Matchable
class Any
Show all
final class Map2[K, +V](key1: K, value1: V, key2: K, value2: V) extends AbstractMap[K, V], StrictOptimizedIterableOps[(K, V), Iterable, Map[K, V]], Serializable

Attributes

Source
Map.scala
Supertypes
trait Serializable
trait StrictOptimizedIterableOps[(K, V), Iterable, Map[K, V]]
class AbstractMap[K, V]
trait Map[K, V]
trait MapOps[K, V, Map, Map[K, V]]
trait Iterable[(K, V)]
class AbstractMap[K, V]
trait Map[K, V]
trait Pure
trait Equals
trait MapOps[K, V, Map, Map[K, V]]
trait PartialFunction[K, V]
trait K -> V
class AbstractIterable[(K, V)]
trait Iterable[(K, V)]
trait IterableOps[(K, V), Iterable, Map[K, V]]
trait IterableOnceOps[(K, V), Iterable, Map[K, V]]
trait IterableOnce[(K, V)]
class Object
trait Matchable
class Any
Show all
class Map3[K, +V](key1: K, value1: V, key2: K, value2: V, key3: K, value3: V) extends AbstractMap[K, V], StrictOptimizedIterableOps[(K, V), Iterable, Map[K, V]], Serializable

Attributes

Source
Map.scala
Supertypes
trait Serializable
trait StrictOptimizedIterableOps[(K, V), Iterable, Map[K, V]]
class AbstractMap[K, V]
trait Map[K, V]
trait MapOps[K, V, Map, Map[K, V]]
trait Iterable[(K, V)]
class AbstractMap[K, V]
trait Map[K, V]
trait Pure
trait Equals
trait MapOps[K, V, Map, Map[K, V]]
trait PartialFunction[K, V]
trait K -> V
class AbstractIterable[(K, V)]
trait Iterable[(K, V)]
trait IterableOps[(K, V), Iterable, Map[K, V]]
trait IterableOnceOps[(K, V), Iterable, Map[K, V]]
trait IterableOnce[(K, V)]
class Object
trait Matchable
class Any
Show all
final class Map4[K, +V](key1: K, value1: V, key2: K, value2: V, key3: K, value3: V, key4: K, value4: V) extends AbstractMap[K, V], StrictOptimizedIterableOps[(K, V), Iterable, Map[K, V]], Serializable

Attributes

Source
Map.scala
Supertypes
trait Serializable
trait StrictOptimizedIterableOps[(K, V), Iterable, Map[K, V]]
class AbstractMap[K, V]
trait Map[K, V]
trait MapOps[K, V, Map, Map[K, V]]
trait Iterable[(K, V)]
class AbstractMap[K, V]
trait Map[K, V]
trait Pure
trait Equals
trait MapOps[K, V, Map, Map[K, V]]
trait PartialFunction[K, V]
trait K -> V
class AbstractIterable[(K, V)]
trait Iterable[(K, V)]
trait IterableOps[(K, V), Iterable, Map[K, V]]
trait IterableOnceOps[(K, V), Iterable, Map[K, V]]
trait IterableOnce[(K, V)]
class Object
trait Matchable
class Any
Show all
class WithDefault[K, +V](val underlying: Map[K, V], val defaultValue: K -> V) extends AbstractMap[K, V], MapOps[K, V, Map, WithDefault[K, V]], Serializable

Attributes

Source
Map.scala
Supertypes
trait Serializable
class AbstractMap[K, V]
trait Map[K, V]
trait MapOps[K, V, Map, WithDefault[K, V]]
trait Iterable[(K, V)]
class AbstractMap[K, V]
trait Map[K, V]
trait Pure
trait Equals
trait MapOps[K, V, Map, WithDefault[K, V]]
trait PartialFunction[K, V]
trait K -> V
class AbstractIterable[(K, V)]
trait Iterable[(K, V)]
trait IterableOps[(K, V), Iterable, WithDefault[K, V]]
trait IterableOnceOps[(K, V), Iterable, WithDefault[K, V]]
trait IterableOnce[(K, V)]
class Object
trait Matchable
class Any
Show all
Known subtypes
class WithDefault[K, V]

Value members

Concrete methods

def empty[K, V]: Map[K, V]

An empty Map.

An empty Map.

Type parameters

K

the type of the keys

V

the type of the values

Attributes

Returns

an empty map of type CC[K, V]

Source
Map.scala
def from[K, V](it: IterableOnce[(K, V)]^): Map[K, V]

A collection of type Map generated from given iterable object.

A collection of type Map generated from given iterable object.

Type parameters

K

the type of the keys

V

the type of the values

Value parameters

it

the source collection of key-value pairs

Attributes

Returns

a new map of type CC[K, V] containing the bindings from it

Source
Map.scala
def newBuilder[K, V]: Builder[(K, V), Map[K, V]]

The default builder for Map objects.

The default builder for Map objects.

Type parameters

K

the type of the keys

V

the type of the values

Attributes

Returns

a new Builder that accepts key-value pairs and produces a CC[K, V]

Source
Map.scala

Inherited methods

def apply[K, V](elems: (K, V)*): Map[K, V]

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

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

Type parameters

K

the type of the keys

V

the type of the values

Value parameters

elems

the key-value pairs to include in the map

Attributes

Returns

a new map of type CC[K, V] containing the given elems

Inherited from:
MapFactory
Source
Factory.scala

Implicits

Inherited implicits

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

The default Factory instance for maps.

The default Factory instance for maps.

Type parameters

K

the type of the keys

V

the type of the values

Attributes

Returns

a Factory that builds a CC[K, V] from a collection of key-value pairs

Inherited from:
MapFactory
Source
Factory.scala