MapWrapper

abstract class MapWrapper[K, V] extends Map[K, V]

Default partial implementation for mutable map adapters.

Default partial implementation for mutable map adapters.

trait Map[K, V]
trait MapOps[K, V, [K, V] =>> Map[K, V], Map[K, V]]
trait Shrinkable[K]
trait Builder[(K, V), Map[K, V]]
trait Growable[(K, V)]
trait Clearable
trait Cloneable[Map[K, V]]
trait Cloneable
trait Map[K, V]
trait Equals
trait MapFactoryDefaults[K, V, [K, V] =>> Map[K, V], [A] =>> Iterable[A]]
trait MapOps[K, V, [K, V] =>> Map[K, V], Map[K, V]]
trait PartialFunction[K, V]
trait K => V
trait Iterable[(K, V)]
trait Iterable[(K, V)]
trait IterableFactoryDefaults[(K, V), [A] =>> Iterable[A]]
trait IterableOps[(K, V), [A] =>> Iterable[A], Map[K, V]]
trait IterableOnceOps[(K, V), [A] =>> Iterable[A], Map[K, V]]
trait IterableOnce[(K, V)]
class Object
trait Matchable
class Any

Type members

Types

type MoreElem[+B] = IterableOnce[B]

The collection passed to addAll and subtractAll

The collection passed to addAll and subtractAll

Value members

Concrete methods

final protected def mkIterator[B](xs: IterableOnce[B]): Iterator[B]

Cross-version way for creating an iterator from MoreElem.

Cross-version way for creating an iterator from MoreElem.

Inherited methods

@inline
final def ++[B >: (K, V)](suffix: IterableOnce[B]): Iterable[B]
Inherited from
IterableOps
def ++[V2 >: V](xs: IterableOnce[(K, V2)]): Map[K, V2]
Inherited from
MapOps
@inline
final def ++=(xs: IterableOnce[(K, V)]): MapWrapper[K, V]
Inherited from
Growable
@inline
final def +=(elem: (K, V)): MapWrapper[K, V]
Inherited from
Growable
@inline
final def --=(xs: IterableOnce[K]): MapWrapper[K, V]
Inherited from
Shrinkable
@inline
final def -=(elem: K): MapWrapper[K, V]
Inherited from
Shrinkable
Inherited from
Cloneable
def addAll(xs: IterableOnce[(K, V)]): MapWrapper[K, V]
Inherited from
Growable
def addOne(elem: (K, V)): MapWrapper[K, V]
Inherited from
Growable
@inline
final def addString(b: StringBuilder): StringBuilder
Inherited from
IterableOnceOps
@inline
final def addString(b: StringBuilder, sep: String): StringBuilder
Inherited from
IterableOnceOps
override def addString(sb: StringBuilder, start: String, sep: String, end: String): StringBuilder
Definition Classes
MapOps -> IterableOnceOps
Inherited from
MapOps
def andThen[C](k: PartialFunction[V, C]): PartialFunction[K, C]
Inherited from
PartialFunction
override def andThen[C](k: V => C): PartialFunction[K, C]
Definition Classes
PartialFunction -> Function1
Inherited from
PartialFunction
@throws(scala.this.throws.$lessinit$greater$default$1[scala.NoSuchElementException])
def apply(key: K): V
Inherited from
MapOps
override def applyOrElse[K1 <: K, V1 >: V](x: K1, default: K1 => V1): V1
Definition Classes
MapOps -> PartialFunction
Inherited from
MapOps
def canEqual(that: Any): Boolean
Inherited from
Map
def clear(): Unit
Inherited from
MapOps
override def clone(): Map[K, V]
Definition Classes
MapOps -> Cloneable -> Object
Inherited from
MapOps
def collect[B](pf: PartialFunction[(K, V), B]): Iterable[B]
Inherited from
IterableOps
def collect[K2, V2](pf: PartialFunction[(K, V), (K2, V2)]): Map[K2, V2]
Inherited from
MapOps
def collectFirst[B](pf: PartialFunction[(K, V), B]): Option[B]
Inherited from
IterableOnceOps
def compose[R](k: PartialFunction[R, K]): PartialFunction[R, V]
Inherited from
PartialFunction
@unspecialized
def compose[A](g: A => K): A => V
Inherited from
Function1
def concat[B >: (K, V)](suffix: IterableOnce[B]): Iterable[B]
Inherited from
IterableOps
def concat[V2 >: V](suffix: IterableOnce[(K, V2)]): Map[K, V2]
Inherited from
MapOps
def contains(key: K): Boolean
Inherited from
MapOps
def copyToArray[B >: (K, V)](xs: Array[B], start: Int, len: Int): Int
Inherited from
IterableOnceOps
@deprecatedOverriding("This should always forward to the 3-arg version of this method", "2.13.4")
def copyToArray[B >: (K, V)](xs: Array[B], start: Int): Int
Inherited from
IterableOnceOps
@deprecatedOverriding("This should always forward to the 3-arg version of this method", "2.13.4")
def copyToArray[B >: (K, V)](xs: Array[B]): Int
Inherited from
IterableOnceOps
def corresponds[B](that: IterableOnce[B])(p: ((K, V), B) => Boolean): Boolean
Inherited from
IterableOnceOps
def count(p: (K, V) => Boolean): Int
Inherited from
IterableOnceOps
@throws(scala.this.throws.$lessinit$greater$default$1[scala.NoSuchElementException])
def default(key: K): V
Inherited from
MapOps
def drop(n: Int): Map[K, V]
Inherited from
IterableOps
def dropRight(n: Int): Map[K, V]
Inherited from
IterableOps
def dropWhile(p: (K, V) => Boolean): Map[K, V]
Inherited from
IterableOps
def elementWise: ElementWiseExtractor[K, V]
Inherited from
PartialFunction
override def empty: Map[K, V]
Definition Classes
MapFactoryDefaults -> IterableOps
Inherited from
MapFactoryDefaults
override def equals(o: Any): Boolean
Definition Classes
Map -> Equals -> Any
Inherited from
Map
def exists(p: (K, V) => Boolean): Boolean
Inherited from
IterableOnceOps
def filter(pred: (K, V) => Boolean): Map[K, V]
Inherited from
IterableOps
def filterInPlace(p: (K, V) => Boolean): MapWrapper[K, V]
Inherited from
MapOps
def filterNot(pred: (K, V) => Boolean): Map[K, V]
Inherited from
IterableOps
def find(p: (K, V) => Boolean): Option[(K, V)]
Inherited from
IterableOnceOps
def flatMap[B](f: (K, V) => IterableOnce[B]): Iterable[B]
Inherited from
IterableOps
def flatMap[K2, V2](f: (K, V) => IterableOnce[(K2, V2)]): Map[K2, V2]
Inherited from
MapOps
def flatten[B](asIterable: (K, V) => IterableOnce[B]): Iterable[B]
Inherited from
IterableOps
def fold[A1 >: (K, V)](z: A1)(op: (A1, A1) => A1): A1
Inherited from
IterableOnceOps
def foldLeft[B](z: B)(op: (B, (K, V)) => B): B
Inherited from
IterableOnceOps
def foldRight[B](z: B)(op: ((K, V), B) => B): B
Inherited from
IterableOnceOps
def forall(p: (K, V) => Boolean): Boolean
Inherited from
IterableOnceOps
def foreach[U](f: (K, V) => U): Unit
Inherited from
IterableOnceOps
def foreachEntry[U](f: (K, V) => U): Unit
Inherited from
MapOps
override protected def fromSpecific(coll: IterableOnce[(K, V)]): Map[K, V]
Definition Classes
MapFactoryDefaults -> IterableOps
Inherited from
MapFactoryDefaults
def get(key: K): Option[V]
Inherited from
MapOps
def getOrElse[V1 >: V](key: K, default: => V1): V1
Inherited from
MapOps
def getOrElseUpdate(key: K, op: => V): V
Inherited from
MapOps
def groupBy[K](f: (K, V) => K): Map[K, Map[K, V]]
Inherited from
IterableOps
def groupMap[K, B](key: (K, V) => K)(f: (K, V) => B): Map[K, Iterable[B]]
Inherited from
IterableOps
def groupMapReduce[K, B](key: (K, V) => K)(f: (K, V) => B)(reduce: (B, B) => B): Map[K, B]
Inherited from
IterableOps
def grouped(size: Int): Iterator[Map[K, V]]
Inherited from
IterableOps
override def hashCode(): Int
Definition Classes
Map -> Any
Inherited from
Map
def head: (K, V)
Inherited from
IterableOps
def headOption: Option[(K, V)]
Inherited from
IterableOps
def init: Map[K, V]
Inherited from
IterableOps
def inits: Iterator[Map[K, V]]
Inherited from
IterableOps
def isDefinedAt(key: K): Boolean
Inherited from
MapOps
def isEmpty: Boolean
Inherited from
IterableOnceOps
override def isTraversableAgain: Boolean
Definition Classes
IterableOps -> IterableOnceOps
Inherited from
IterableOps
override def iterableFactory: IterableFactory[[A] =>> Iterable[A]]
Definition Classes
Iterable -> Iterable -> IterableOps
Inherited from
Iterable
def iterator: Iterator[(K, V)]
Inherited from
IterableOnce
def keySet: Set[K]
Inherited from
MapOps
def keyStepper[S <: Stepper[_]](shape: StepperShape[K, S]): S
Inherited from
MapOps
def keys: Iterable[K]
Inherited from
MapOps
def keysIterator: Iterator[K]
Inherited from
MapOps
override def knownSize: Int
Definition Classes
MapOps -> Growable -> IterableOnce
Inherited from
MapOps
def last: (K, V)
Inherited from
IterableOps
def lastOption: Option[(K, V)]
Inherited from
IterableOps
def lazyZip[B](that: Iterable[B]): LazyZip2[(K, V), B, MapWrapper[K, V]]
Inherited from
Iterable
def lift: K => Option[V]
Inherited from
PartialFunction
def map[B](f: (K, V) => B): Iterable[B]
Inherited from
IterableOps
def map[K2, V2](f: (K, V) => (K2, V2)): Map[K2, V2]
Inherited from
MapOps
override def mapFactory: MapFactory[[K, V] =>> Map[K, V]]
Definition Classes
Map -> Map -> MapOps
Inherited from
Map
def mapResult[NewTo](f: Map[K, V] => NewTo): Builder[(K, V), NewTo]
Inherited from
Builder
def mapValuesInPlace(f: (K, V) => V): MapWrapper[K, V]
Inherited from
MapOps
def max[B >: (K, V)](ord: Ordering[B]): (K, V)
Inherited from
IterableOnceOps
def maxBy[B](f: (K, V) => B)(cmp: Ordering[B]): (K, V)
Inherited from
IterableOnceOps
def maxByOption[B](f: (K, V) => B)(cmp: Ordering[B]): Option[(K, V)]
Inherited from
IterableOnceOps
def maxOption[B >: (K, V)](ord: Ordering[B]): Option[(K, V)]
Inherited from
IterableOnceOps
def min[B >: (K, V)](ord: Ordering[B]): (K, V)
Inherited from
IterableOnceOps
def minBy[B](f: (K, V) => B)(cmp: Ordering[B]): (K, V)
Inherited from
IterableOnceOps
def minByOption[B](f: (K, V) => B)(cmp: Ordering[B]): Option[(K, V)]
Inherited from
IterableOnceOps
def minOption[B >: (K, V)](ord: Ordering[B]): Option[(K, V)]
Inherited from
IterableOnceOps
@inline
final def mkString: String
Inherited from
IterableOnceOps
@inline
final def mkString(sep: String): String
Inherited from
IterableOnceOps
final def mkString(start: String, sep: String, end: String): String
Inherited from
IterableOnceOps
override protected def newSpecificBuilder: Builder[(K, V), Map[K, V]]
Definition Classes
MapFactoryDefaults -> IterableOps
Inherited from
MapFactoryDefaults
@deprecatedOverriding("nonEmpty is defined as !isEmpty; override isEmpty instead", "2.13.0")
def nonEmpty: Boolean
Inherited from
IterableOnceOps
def orElse[A1 <: K, B1 >: V](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
Inherited from
PartialFunction
def partition(p: (K, V) => Boolean): (Map[K, V], Map[K, V])
Inherited from
IterableOps
def partitionMap[A1, A2](f: (K, V) => Either[A1, A2]): (Iterable[A1], Iterable[A2])
Inherited from
IterableOps
def product[B >: (K, V)](num: Numeric[B]): B
Inherited from
IterableOnceOps
def put(key: K, value: V): Option[V]
Inherited from
MapOps
def reduce[B >: (K, V)](op: (B, B) => B): B
Inherited from
IterableOnceOps
def reduceLeft[B >: (K, V)](op: (B, (K, V)) => B): B
Inherited from
IterableOnceOps
def reduceLeftOption[B >: (K, V)](op: (B, (K, V)) => B): Option[B]
Inherited from
IterableOnceOps
def reduceOption[B >: (K, V)](op: (B, B) => B): Option[B]
Inherited from
IterableOnceOps
def reduceRight[B >: (K, V)](op: ((K, V), B) => B): B
Inherited from
IterableOnceOps
def reduceRightOption[B >: (K, V)](op: ((K, V), B) => B): Option[B]
Inherited from
IterableOnceOps
def remove(key: K): Option[V]
Inherited from
MapOps
def result(): Map[K, V]
Inherited from
MapOps
protected def reversed: Iterable[(K, V)]
Inherited from
IterableOnceOps
def runWith[U](action: V => U): K => Boolean
Inherited from
PartialFunction
def scan[B >: (K, V)](z: B)(op: (B, B) => B): Iterable[B]
Inherited from
IterableOps
def scanLeft[B](z: B)(op: (B, (K, V)) => B): Iterable[B]
Inherited from
IterableOps
def scanRight[B](z: B)(op: ((K, V), B) => B): Iterable[B]
Inherited from
IterableOps
def size: Int
Inherited from
IterableOnceOps
def sizeCompare(that: Iterable[_]): Int
Inherited from
IterableOps
def sizeCompare(otherSize: Int): Int
Inherited from
IterableOps
final def sizeHint(coll: IterableOnce[_], delta: Int): Unit
Inherited from
Builder
def sizeHint(size: Int): Unit
Inherited from
Builder
final def sizeHintBounded(size: Int, boundingColl: Iterable[_]): Unit
Inherited from
Builder
@inline
final def sizeIs: SizeCompareOps
Inherited from
IterableOps
def slice(from: Int, until: Int): Map[K, V]
Inherited from
IterableOps
def sliding(size: Int, step: Int): Iterator[Map[K, V]]
Inherited from
IterableOps
def sliding(size: Int): Iterator[Map[K, V]]
Inherited from
IterableOps
def span(p: (K, V) => Boolean): (Map[K, V], Map[K, V])
Inherited from
IterableOps
override def splitAt(n: Int): (Map[K, V], Map[K, V])
Definition Classes
IterableOps -> IterableOnceOps
Inherited from
IterableOps
def stepper[S <: Stepper[_]](shape: StepperShape[(K, V), S]): S
Inherited from
IterableOnce
def subtractAll(xs: IterableOnce[K]): MapWrapper[K, V]
Inherited from
Shrinkable
def subtractOne(elem: K): MapWrapper[K, V]
Inherited from
Shrinkable
def sum[B >: (K, V)](num: Numeric[B]): B
Inherited from
IterableOnceOps
def tail: Map[K, V]
Inherited from
IterableOps
def tails: Iterator[Map[K, V]]
Inherited from
IterableOps
def take(n: Int): Map[K, V]
Inherited from
IterableOps
def takeRight(n: Int): Map[K, V]
Inherited from
IterableOps
def takeWhile(p: (K, V) => Boolean): Map[K, V]
Inherited from
IterableOps
override def tapEach[U](f: (K, V) => U): Map[K, V]
Definition Classes
IterableOps -> IterableOnceOps
Inherited from
IterableOps
def to[C1](factory: Factory[(K, V), C1]): C1
Inherited from
IterableOnceOps
def toArray[B >: (K, V)](ClassTag[B]): Array[B]
Inherited from
IterableOnceOps
@inline
final def toBuffer[B >: (K, V)]: Buffer[B]
Inherited from
IterableOnceOps
def toIndexedSeq: IndexedSeq[(K, V)]
Inherited from
IterableOnceOps
final def toIterable: MapWrapper[K, V]
Inherited from
Iterable
def toList: List[(K, V)]
Inherited from
IterableOnceOps
def toMap[K, V](ev: (K, V) <:< (K, V)): Map[K, V]
Inherited from
IterableOnceOps
def toSeq: Seq[(K, V)]
Inherited from
IterableOnceOps
def toSet[B >: (K, V)]: Set[B]
Inherited from
IterableOnceOps
override def toString(): String
Definition Classes
Map -> Function1 -> Iterable -> Any
Inherited from
Map
def toVector: Vector[(K, V)]
Inherited from
IterableOnceOps
def transpose[B](asIterable: (K, V) => Iterable[B]): Iterable[Iterable[B]]
Inherited from
IterableOps
def unapply(a: K): Option[V]
Inherited from
PartialFunction
def unzip[A1, A2](asPair: (K, V) => (A1, A2)): (Iterable[A1], Iterable[A2])
Inherited from
IterableOps
def unzip3[A1, A2, A3](asTriple: (K, V) => (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])
Inherited from
IterableOps
def update(key: K, value: V): Unit
Inherited from
MapOps
def updateWith(key: K)(remappingFunction: Option[V] => Option[V]): Option[V]
Inherited from
MapOps
def valueStepper[S <: Stepper[_]](shape: StepperShape[V, S]): S
Inherited from
MapOps
def values: Iterable[V]
Inherited from
MapOps
def valuesIterator: Iterator[V]
Inherited from
MapOps
override def view: MapView[K, V]
Definition Classes
MapOps -> IterableOps
Inherited from
MapOps
def withDefault(d: K => V): Map[K, V]
Inherited from
Map
def withDefaultValue(d: V): Map[K, V]
Inherited from
Map
override def withFilter(p: (K, V) => Boolean): WithFilter[K, V, [A] =>> Iterable[A], [K, V] =>> Map[K, V]]
Definition Classes
MapFactoryDefaults -> IterableOps
Inherited from
MapFactoryDefaults
def zip[B](that: IterableOnce[B]): Iterable[((K, V), B)]
Inherited from
IterableOps
def zipAll[A1 >: (K, V), B](that: Iterable[B], thisElem: A1, thatElem: B): Iterable[(A1, B)]
Inherited from
IterableOps
def zipWithIndex: Iterable[((K, V), Int)]
Inherited from
IterableOps

Deprecated and Inherited methods

@deprecated("Use ++ with an explicit collection argument instead of + with varargs", "2.13.0")
def +[V1 >: V](elem1: (K, V1), elem2: (K, V1), elems: (K, V1)*): Map[K, V1]
Deprecated
Inherited from
MapOps
@deprecated("Consider requiring an immutable Map or fall back to Map.concat.", "2.13.0")
def +[V1 >: V](kv: (K, V1)): Map[K, V1]
Deprecated
Inherited from
MapOps
@deprecated("Use ++ instead of ++: for collections of type Iterable", "2.13.0")
def ++:[B >: (K, V)](that: IterableOnce[B]): Iterable[B]
Deprecated
Inherited from
IterableOps
@deprecated("Use ++ instead of ++: for collections of type Iterable", "2.13.0")
def ++:[V1 >: V](that: IterableOnce[(K, V1)]): Map[K, V1]
Deprecated
Inherited from
MapOps
@inline @deprecated("Use `++=` aka `addAll` instead of varargs `+=`; infix operations with an operand of multiple args will be deprecated", "2.13.0")
final def +=(elem1: (K, V), elem2: (K, V), elems: (K, V)*): MapWrapper[K, V]
Deprecated
Inherited from
Growable
@deprecated("Use -- or removeAll on an immutable Map", "2.13.0")
final def -(key1: K, key2: K, keys: K*): Map[K, V]
Deprecated
Inherited from
MapOps
@deprecated("Use - or remove on an immutable Map", "2.13.0")
final def -(key: K): Map[K, V]
Deprecated
Inherited from
MapOps
@inline @deprecated("Consider requiring an immutable Map.", "2.13.0")
def --(keys: IterableOnce[K]): Map[K, V]
Deprecated
Inherited from
MapOps
@deprecated("Use `--=` aka `subtractAll` instead of varargs `-=`; infix operations with an operand of multiple args will be deprecated", "2.13.3")
def -=(elem1: K, elem2: K, elems: K*): MapWrapper[K, V]
Deprecated
Inherited from
Shrinkable
@inline @deprecated("Use foldLeft instead of /:", "2.13.0")
final def /:[B](z: B)(op: (B, (K, V)) => B): B
Deprecated
Inherited from
IterableOnceOps
@inline @deprecated("Use foldRight instead of :\\", "2.13.0")
final def :\[B](z: B)(op: ((K, V), B) => B): B
Deprecated
Inherited from
IterableOnceOps
@deprecated("`aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.", "2.13.0")
def aggregate[B](z: => B)(seqop: (B, (K, V)) => B, combop: (B, B) => B): B
Deprecated
Inherited from
IterableOnceOps
@inline @deprecatedOverriding("Use iterableFactory instead", "2.13.0") @deprecated("Use iterableFactory instead", "2.13.0")
def companion: IterableFactory[[A] =>> Iterable[A]]
Deprecated
Inherited from
IterableOps
@inline @deprecated("Use `dest ++= coll` instead", "2.13.0")
final def copyToBuffer[B >: (K, V)](dest: Buffer[B]): Unit
Deprecated
Inherited from
IterableOnceOps
@deprecated("Use .view.filterKeys(f). A future version will include a strict version of this method (for now, .view.filterKeys(p).toMap).", "2.13.0")
def filterKeys(p: K => Boolean): MapView[K, V]
Deprecated
Inherited from
MapOps
@deprecated("Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)", "2.13.0")
def hasDefiniteSize: Boolean
Deprecated
Inherited from
IterableOnceOps
@deprecated("Use .view.mapValues(f). A future version will include a strict version of this method (for now, .view.mapValues(f).toMap).", "2.13.0")
def mapValues[W](f: V => W): MapView[K, W]
Deprecated
Inherited from
MapOps
@deprecated("Use coll instead of repr in a collection implementation, use the collection value itself from the outside", "2.13.0")
final def repr: Map[K, V]
Deprecated
Inherited from
IterableOps
@inline @deprecated("Use filterInPlace instead", "2.13.0")
final def retain(p: (K, V) => Boolean): MapWrapper[K, V]
Deprecated
Inherited from
MapOps
@deprecated("Iterable.seq always returns the iterable itself", "2.13.0")
def seq: MapWrapper[K, V]
Deprecated
Inherited from
Iterable
@inline @deprecated("Use .iterator instead of .toIterator", "2.13.0")
final def toIterator: Iterator[(K, V)]
Deprecated
Inherited from
IterableOnceOps
@inline @deprecated("Use .to(LazyList) instead of .toStream", "2.13.0")
final def toStream: Stream[(K, V)]
Deprecated
Inherited from
IterableOnceOps
@deprecated("Use toIterable instead", "2.13.0")
final def toTraversable: Iterable[(K, V)]
Deprecated
Inherited from
IterableOps
@inline @deprecated("Use mapValuesInPlace instead", "2.13.0")
final def transform(f: (K, V) => V): MapWrapper[K, V]
Deprecated
Inherited from
MapOps
@deprecated("Use m.clone().addOne((k,v)) instead of m.updated(k, v)", "2.13.0")
def updated[V1 >: V](key: K, value: V1): Map[K, V1]
Deprecated
Inherited from
MapOps
@deprecated("Use .view.slice(from, until) instead of .view(from, until)", "2.13.0")
def view(from: Int, until: Int): View[(K, V)]
Deprecated
Inherited from
IterableOps