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 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 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 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 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 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

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

Inherited from:
MapFactory
Source
Factory.scala