Scala Standard Library 2.13.1 - scala.collection.mutable.Map (original) (raw)

trait Map[K, V] extends Iterable[(K, V)] with collection.Map[K, V] with MapOps[K, V, Map, Map[K, V]] with Growable[(K, V)] with Shrinkable[K] with MapFactoryDefaults[K, V, Map, Iterable]

Ordering

  1. Alphabetic
  2. By Inheritance

Inherited

  1. Map
  2. MapOps
  3. Shrinkable
  4. Builder
  5. Growable
  6. Clearable
  7. Cloneable
  8. Cloneable
  9. Map
  10. Equals
  11. MapFactoryDefaults
  12. MapOps
  13. PartialFunction
  14. Function1
  15. Iterable
  16. Iterable
  17. IterableFactoryDefaults
  18. IterableOps
  19. IterableOnceOps
  20. IterableOnce
  21. AnyRef
  22. Any

Implicitly

  1. by UnliftOps

  2. by iterableOnceExtensionMethods

  3. by any2stringadd

  4. by StringFormat

  5. by Ensuring

  6. by ArrowAssoc

  7. Hide All

  8. Show All

Visibility

  1. Public
  2. Protected

Abstract Value Members

  1. abstract def addOne(elem: (K, V)): Map.this.type
  2. abstract def get(key: K): Option[V]
  3. abstract def iterator: Iterator[(K, V)]
  4. abstract def subtractOne(elem: K): Map.this.type

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
  2. final def ##(): Int
  3. def ++[V2 >: V](xs: IterableOnce[(K, V2)]): Map[K, V2]
  4. final def ++[B >: (K, V)](suffix: IterableOnce[B]): Iterable[B]
  5. final def ++=(xs: IterableOnce[(K, V)]): Map.this.type
  6. final def +=(elem: (K, V)): Map.this.type
  7. final def --=(xs: IterableOnce[K]): Map.this.type
  8. def -=(elem1: K, elem2: K, elems: K*): Map.this.type
  9. final def -=(elem: K): Map.this.type
  10. def ->[B](y: B): (Map[K, V], B)
  11. final def ==(arg0: Any): Boolean
  12. def addAll(xs: IterableOnce[(K, V)]): Map.this.type
  13. def addString(sb: StringBuilder, start: String, sep: String, end: String): StringBuilder
  14. final def addString(b: StringBuilder): StringBuilder
  15. final def addString(b: StringBuilder, sep: String): StringBuilder
  16. def andThen[C](k: PartialFunction[V, C]): PartialFunction[K, C]
  17. def andThen[C](k: (V) => C): PartialFunction[K, C]
  18. def apply(key: K): V
  19. def applyOrElse[K1 <: K, V1 >: V](x: K1, default: (K1) => V1): V1
  20. final def asInstanceOf[T0]: T0
  21. def canEqual(that: Any): Boolean
  22. def className: String
  23. def clear(): Unit
  24. def clone(): Map[K, V]
  25. final def coll: Map.this.type
  26. def collect[K2, V2](pf: PartialFunction[(K, V), (K2, V2)]): Map[K2, V2]
  27. def collect[B](pf: PartialFunction[(K, V), B]): Iterable[B]
  28. def collectFirst[B](pf: PartialFunction[(K, V), B]): Option[B]
  29. def compose[R](k: PartialFunction[R, K]): PartialFunction[R, V]
  30. def compose[A](g: (A) => K): (A) => V
  31. def concat[V2 >: V](suffix: IterableOnce[(K, V2)]): Map[K, V2]
  32. def concat[B >: (K, V)](suffix: IterableOnce[B]): Iterable[B]
  33. def contains(key: K): Boolean
  34. def copyToArray[B >: (K, V)](xs: Array[B], start: Int, len: Int): Int
  35. def copyToArray[B >: (K, V)](xs: Array[B], start: Int): Int
  36. def copyToArray[B >: (K, V)](xs: Array[B]): Int
  37. def corresponds[B](that: IterableOnce[B])(p: ((K, V), B) => Boolean): Boolean
  38. def count(p: ((K, V)) => Boolean): Int
  39. def default(key: K): V
  40. def drop(n: Int): Map[K, V]
  41. def dropRight(n: Int): Map[K, V]
  42. def dropWhile(p: ((K, V)) => Boolean): Map[K, V]
  43. def elementWise: ElementWiseExtractor[K, V]
  44. def empty: Map[K, V]
  45. def ensuring(cond: (Map[K, V]) => Boolean, msg: => Any): Map[K, V]
  46. def ensuring(cond: (Map[K, V]) => Boolean): Map[K, V]
  47. def ensuring(cond: Boolean, msg: => Any): Map[K, V]
  48. def ensuring(cond: Boolean): Map[K, V]
  49. final def eq(arg0: AnyRef): Boolean
  50. def equals(o: Any): Boolean
  51. def exists(p: ((K, V)) => Boolean): Boolean
  52. def filter(pred: ((K, V)) => Boolean): Map[K, V]
  53. def filterInPlace(p: (K, V) => Boolean): Map.this.type
  54. def filterNot(pred: ((K, V)) => Boolean): Map[K, V]
  55. def finalize(): Unit
  56. def find(p: ((K, V)) => Boolean): Option[(K, V)]
  57. def flatMap[K2, V2](f: ((K, V)) => IterableOnce[(K2, V2)]): Map[K2, V2]
  58. def flatMap[B](f: ((K, V)) => IterableOnce[B]): Iterable[B]
  59. def flatten[B](implicit asIterable: ((K, V)) => IterableOnce[B]): Iterable[B]
  60. def fold[A1 >: (K, V)](z: A1)(op: (A1, A1) => A1): A1
  61. def foldLeft[B](z: B)(op: (B, (K, V)) => B): B
  62. def foldRight[B](z: B)(op: ((K, V), B) => B): B
  63. def forall(p: ((K, V)) => Boolean): Boolean
  64. def foreach[U](f: ((K, V)) => U): Unit
  65. def foreachEntry[U](f: (K, V) => U): Unit
  66. def formatted(fmtstr: String): String
  67. def fromSpecific(coll: IterableOnce[(K, V)]): Map[K, V]
  68. final def getClass(): Class[_ <: AnyRef]
  69. def getOrElse[V1 >: V](key: K, default: => V1): V1
  70. def getOrElseUpdate(key: K, op: => V): V
  71. def groupBy[K](f: ((K, V)) => K): immutable.Map[K, Map[K, V]]
  72. def groupMap[K, B](key: ((K, V)) => K)(f: ((K, V)) => B): immutable.Map[K, Iterable[B]]
  73. def groupMapReduce[K, B](key: ((K, V)) => K)(f: ((K, V)) => B)(reduce: (B, B) => B): immutable.Map[K, B]
  74. def grouped(size: Int): Iterator[Map[K, V]]
  75. def hashCode(): Int
  76. def head: (K, V)
  77. def headOption: Option[(K, V)]
  78. def init: Map[K, V]
  79. def inits: Iterator[Map[K, V]]
  80. def isDefinedAt(key: K): Boolean
  81. def isEmpty: Boolean
  82. final def isInstanceOf[T0]: Boolean
  83. def isTraversableAgain: Boolean
  84. def iterableFactory: IterableFactory[Iterable]
  85. def keySet: collection.Set[K]
  86. def keyStepper[S <: Stepper[_]](implicit shape: StepperShape[K, S]): S
  87. def keys: collection.Iterable[K]
  88. def keysIterator: Iterator[K]
  89. def knownSize: Int
  90. def last: (K, V)
  91. def lastOption: Option[(K, V)]
  92. def lazyZip[B](that: collection.Iterable[B]): LazyZip2[(K, V), B, Map.this.type]
  93. def lift: (K) => Option[V]
  94. def map[K2, V2](f: ((K, V)) => (K2, V2)): Map[K2, V2]
  95. def map[B](f: ((K, V)) => B): Iterable[B]
  96. def mapFactory: MapFactory[Map]
  97. final def mapFromIterable[K2, V2](it: collection.Iterable[(K2, V2)]): Map[K2, V2]
  98. def mapResult[NewTo](f: (Map[K, V]) => NewTo): Builder[(K, V), NewTo]
  99. def mapValuesInPlace(f: (K, V) => V): Map.this.type
  100. def max[B >: (K, V)](implicit ord: math.Ordering[B]): (K, V)
  101. def maxBy[B](f: ((K, V)) => B)(implicit cmp: math.Ordering[B]): (K, V)
  102. def maxByOption[B](f: ((K, V)) => B)(implicit cmp: math.Ordering[B]): Option[(K, V)]
  103. def maxOption[B >: (K, V)](implicit ord: math.Ordering[B]): Option[(K, V)]
  104. def min[B >: (K, V)](implicit ord: math.Ordering[B]): (K, V)
  105. def minBy[B](f: ((K, V)) => B)(implicit cmp: math.Ordering[B]): (K, V)
  106. def minByOption[B](f: ((K, V)) => B)(implicit cmp: math.Ordering[B]): Option[(K, V)]
  107. def minOption[B >: (K, V)](implicit ord: math.Ordering[B]): Option[(K, V)]
  108. final def mkString: String
  109. final def mkString(sep: String): String
  110. final def mkString(start: String, sep: String, end: String): String
  111. final def ne(arg0: AnyRef): Boolean
  112. def newSpecificBuilder: Builder[(K, V), Map[K, V]]
  113. def nonEmpty: Boolean
  114. final def notify(): Unit
  115. final def notifyAll(): Unit
  116. def orElse[A1 <: K, B1 >: V](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
  117. def partition(p: ((K, V)) => Boolean): (Map[K, V], Map[K, V])
  118. def partitionMap[A1, A2](f: ((K, V)) => Either[A1, A2]): (Iterable[A1], Iterable[A2])
  119. def product[B >: (K, V)](implicit num: math.Numeric[B]): B
  120. def put(key: K, value: V): Option[V]
  121. def reduce[B >: (K, V)](op: (B, B) => B): B
  122. def reduceLeft[B >: (K, V)](op: (B, (K, V)) => B): B
  123. def reduceLeftOption[B >: (K, V)](op: (B, (K, V)) => B): Option[B]
  124. def reduceOption[B >: (K, V)](op: (B, B) => B): Option[B]
  125. def reduceRight[B >: (K, V)](op: ((K, V), B) => B): B
  126. def reduceRightOption[B >: (K, V)](op: ((K, V), B) => B): Option[B]
  127. def remove(key: K): Option[V]
  128. def result(): Map[K, V]
  129. def reversed: collection.Iterable[(K, V)]
  130. def runWith[U](action: (V) => U): (K) => Boolean
  131. def scan[B >: (K, V)](z: B)(op: (B, B) => B): Iterable[B]
  132. def scanLeft[B](z: B)(op: (B, (K, V)) => B): Iterable[B]
  133. def scanRight[B](z: B)(op: ((K, V), B) => B): Iterable[B]
  134. def size: Int
  135. def sizeCompare(that: collection.Iterable[_]): Int
  136. def sizeCompare(otherSize: Int): Int
  137. final def sizeHint(coll: IterableOnce[_], delta: Int = 0): Unit
  138. def sizeHint(size: Int): Unit
  139. final def sizeHintBounded(size: Int, boundingColl: collection.Iterable[_]): Unit
  140. final def sizeIs: SizeCompareOps
  141. def slice(from: Int, until: Int): Map[K, V]
  142. def sliding(size: Int, step: Int): Iterator[Map[K, V]]
  143. def sliding(size: Int): Iterator[Map[K, V]]
  144. def span(p: ((K, V)) => Boolean): (Map[K, V], Map[K, V])
  145. def splitAt(n: Int): (Map[K, V], Map[K, V])
  146. def stepper[S <: Stepper[_]](implicit shape: StepperShape[(K, V), S]): S
  147. def stringPrefix: String
  148. def subtractAll(xs: IterableOnce[K]): Map.this.type
  149. def sum[B >: (K, V)](implicit num: math.Numeric[B]): B
  150. final def synchronized[T0](arg0: => T0): T0
  151. def tail: Map[K, V]
  152. def tails: Iterator[Map[K, V]]
  153. def take(n: Int): Map[K, V]
  154. def takeRight(n: Int): Map[K, V]
  155. def takeWhile(p: ((K, V)) => Boolean): Map[K, V]
  156. def tapEach[U](f: ((K, V)) => U): Map[K, V]
  157. def to[C1](factory: Factory[(K, V), C1]): C1
  158. def toArray[B >: (K, V)](implicit arg0: ClassTag[B]): Array[B]
  159. final def toBuffer[B >: (K, V)]: Buffer[B]
  160. def toIndexedSeq: immutable.IndexedSeq[(K, V)]
  161. final def toIterable: Map.this.type
  162. def toList: immutable.List[(K, V)]
  163. def toMap[K, V](implicit ev: <:<[(K, V), (K, V)]): immutable.Map[K, V]
  164. def toSeq: immutable.Seq[(K, V)]
  165. def toSet[B >: (K, V)]: immutable.Set[B]
  166. def toString(): String
  167. def toVector: immutable.Vector[(K, V)]
  168. def transpose[B](implicit asIterable: ((K, V)) => collection.Iterable[B]): Iterable[Iterable[B]]
  169. def unapply(a: K): Option[V]
  170. def unlift: PartialFunction[K, B]
  171. def unzip[A1, A2](implicit asPair: ((K, V)) => (A1, A2)): (Iterable[A1], Iterable[A2])
  172. def unzip3[A1, A2, A3](implicit asTriple: ((K, V)) => (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])
  173. def update(key: K, value: V): Unit
  174. def updateWith(key: K)(remappingFunction: (Option[V]) => Option[V]): Option[V]
  175. def valueStepper[S <: Stepper[_]](implicit shape: StepperShape[V, S]): S
  176. def values: collection.Iterable[V]
  177. def valuesIterator: Iterator[V]
  178. def view: MapView[K, V]
  179. final def wait(): Unit
  180. final def wait(arg0: Long, arg1: Int): Unit
  181. final def wait(arg0: Long): Unit
  182. def withDefault(d: (K) => V): Map[K, V]
  183. def withDefaultValue(d: V): Map[K, V]
  184. def withFilter(p: ((K, V)) => Boolean): MapOps.WithFilter[K, V, [x]Iterable[x], [x, y]Map[x, y]]
  185. def zip[B](that: IterableOnce[B]): Iterable[((K, V), B)]
  186. def zipAll[A1 >: (K, V), B](that: collection.Iterable[B], thisElem: A1, thatElem: B): Iterable[(A1, B)]
  187. def zipWithIndex: Iterable[((K, V), Int)]

Deprecated Value Members

  1. def +[V1 >: V](elem1: (K, V1), elem2: (K, V1), elems: (K, V1)*): Map[K, V1]
  2. def +[V1 >: V](kv: (K, V1)): Map[K, V1]
  3. def ++:[V1 >: V](that: IterableOnce[(K, V1)]): Map[K, V1]
  4. def ++:[B >: (K, V)](that: IterableOnce[B]): Iterable[B]
  5. final def +=(elem1: (K, V), elem2: (K, V), elems: (K, V)*): Map.this.type
  6. final def -(key1: K, key2: K, keys: K*): Map[K, V]
  7. final def -(key: K): Map[K, V]
  8. def --(keys: IterableOnce[K]): Map[K, V]
  9. def /:[B](z: B)(op: (B, (K, V)) => B): B
  10. final def /:[B](z: B)(op: (B, (K, V)) => B): B
  11. def :\[B](z: B)(op: ((K, V), B) => B): B
  12. final def :\[B](z: B)(op: ((K, V), B) => B): B
  13. def aggregate[B](z: => B)(seqop: (B, (K, V)) => B, combop: (B, B) => B): B
  14. def collectFirst[B](f: PartialFunction[(K, V), B]): Option[B]
  15. def companion: IterableFactory[[_]Iterable[_]]
  16. def copyToBuffer(dest: Buffer[(K, V)]): Unit
  17. final def copyToBuffer[B >: (K, V)](dest: Buffer[B]): Unit
  18. def count(f: ((K, V)) => Boolean): Int
  19. def exists(f: ((K, V)) => Boolean): Boolean
  20. def filter(f: ((K, V)) => Boolean): Iterator[(K, V)]
  21. def filterKeys(p: (K) => Boolean): MapView[K, V]
  22. def find(p: ((K, V)) => Boolean): Option[(K, V)]
  23. def flatMap[B](f: ((K, V)) => IterableOnce[B]): IterableOnce[B]
  24. def fold[A1 >: A](z: A1)(op: (A1, A1) => A1): A1
  25. def foldLeft[B](z: B)(op: (B, (K, V)) => B): B
  26. def foldRight[B](z: B)(op: ((K, V), B) => B): B
  27. def forall(f: ((K, V)) => Boolean): Boolean
  28. def foreach[U](f: ((K, V)) => U): Unit
  29. def hasDefiniteSize: Boolean
  30. def isEmpty: Boolean
  31. def map[B](f: ((K, V)) => B): IterableOnce[B]
  32. def mapValues[W](f: (V) => W): MapView[K, W]
  33. def max(implicit ord: math.Ordering[(K, V)]): (K, V)
  34. def maxBy[B](f: ((K, V)) => B)(implicit cmp: math.Ordering[B]): (K, V)
  35. def min(implicit ord: math.Ordering[(K, V)]): (K, V)
  36. def minBy[B](f: ((K, V)) => B)(implicit cmp: math.Ordering[B]): (K, V)
  37. def mkString: String
  38. def mkString(sep: String): String
  39. def mkString(start: String, sep: String, end: String): String
  40. def nonEmpty: Boolean
  41. def product(implicit num: math.Numeric[(K, V)]): (K, V)
  42. def reduce(f: ((K, V), (K, V)) => (K, V)): (K, V)
  43. def reduceLeft(f: ((K, V), (K, V)) => (K, V)): (K, V)
  44. def reduceLeftOption(f: ((K, V), (K, V)) => (K, V)): Option[(K, V)]
  45. def reduceOption(f: ((K, V), (K, V)) => (K, V)): Option[(K, V)]
  46. def reduceRight(f: ((K, V), (K, V)) => (K, V)): (K, V)
  47. def reduceRightOption(f: ((K, V), (K, V)) => (K, V)): Option[(K, V)]
  48. final def repr: Map[K, V]
  49. final def retain(p: (K, V) => Boolean): Map.this.type
  50. def sameElements[B >: A](that: IterableOnce[B]): Boolean
  51. def seq: Map.this.type
  52. def size: Int
  53. def sum(implicit num: math.Numeric[(K, V)]): (K, V)
  54. def to[C1](factory: Factory[(K, V), C1]): C1
  55. def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
  56. def toBuffer[B >: A]: Buffer[B]
  57. def toIndexedSeq: collection.IndexedSeq[(K, V)]
  58. final def toIterable: collection.Iterable[(K, V)]
  59. def toIterator: Iterator[(K, V)]
  60. final def toIterator: Iterator[(K, V)]
  61. def toList: immutable.List[(K, V)]
  62. def toMap[K, V](implicit ev: <:<[(K, V), (K, V)]): immutable.Map[K, V]
  63. def toSeq: immutable.Seq[(K, V)]
  64. def toSet[B >: A]: immutable.Set[B]
  65. def toStream: immutable.Stream[(K, V)]
  66. final def toStream: immutable.Stream[(K, V)]
  67. final def toTraversable: collection.Traversable[(K, V)]
  68. final def toTraversable: collection.Traversable[(K, V)]
  69. def toVector: immutable.Vector[(K, V)]
  70. final def transform(f: (K, V) => V): Map.this.type
  71. def updated[V1 >: V](key: K, value: V1): Map[K, V1]
  72. def view(from: Int, until: Int): View[(K, V)]
  73. def withFilter(f: ((K, V)) => Boolean): Iterator[(K, V)]
  74. def →[B](y: B): (Map[K, V], B)

Inherited from MapOps[K, V, Map, Map[K, V]]

Inherited from Shrinkable[K]

Inherited from Builder[(K, V), Map[K, V]]

Inherited from Growable[(K, V)]

Inherited from Clearable

Inherited from Cloneable[Map[K, V]]

Inherited from java.lang.Cloneable

Inherited from collection.Map[K, V]

Inherited from Equals

Inherited from MapFactoryDefaults[K, V, [x, y]Map[x, y], [x]Iterable[x]]

Inherited from collection.MapOps[K, V, [_, _]Map[_, _], Map[K, V]]

Inherited from PartialFunction[K, V]

Inherited from (K) => V

Inherited from Iterable[(K, V)]

Inherited from collection.Iterable[(K, V)]

Inherited from IterableFactoryDefaults[(K, V), [x]Iterable[x]]

Inherited from IterableOps[(K, V), [_]Iterable[_], Map[K, V]]

Inherited from IterableOnceOps[(K, V), [_]Iterable[_], Map[K, V]]

Inherited from IterableOnce[(K, V)]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion UnliftOps fromMap[K, V] to UnliftOps[K, B]

Inherited by implicit conversion iterableOnceExtensionMethods fromMap[K, V] to IterableOnceExtensionMethods[(K, V)]

Inherited by implicit conversion any2stringadd fromMap[K, V] to any2stringadd[Map[K, V]]

Inherited by implicit conversion StringFormat fromMap[K, V] to StringFormat[Map[K, V]]

Inherited by implicit conversion Ensuring fromMap[K, V] to Ensuring[Map[K, V]]

Inherited by implicit conversion ArrowAssoc fromMap[K, V] to ArrowAssoc[Map[K, V]]

Ungrouped