Scala Standard Library 2.13.1 - scala.collection.immutable.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 MapFactoryDefaults[K, V, Map, Iterable]
Ordering
- Alphabetic
- By Inheritance
Inherited
- Map
- MapOps
- Map
- Equals
- MapFactoryDefaults
- MapOps
- PartialFunction
- Function1
- Iterable
- Iterable
- IterableFactoryDefaults
- IterableOps
- IterableOnceOps
- IterableOnce
- AnyRef
- Any
Implicitly
by UnliftOps
by iterableOnceExtensionMethods
by any2stringadd
by StringFormat
by Ensuring
by ArrowAssoc
Hide All
Show All
Visibility
- Public
- Protected
Type Members
- trait GenKeySet extends AnyRef
- class KeySet extends AbstractSet[K] with GenKeySet with DefaultSerializable
- class ImmutableKeySet extends AbstractSet[K] with GenKeySet with DefaultSerializable
Abstract Value Members
- abstract def get(key: K): Option[V]
- abstract def iterator: Iterator[(K, V)]
- abstract def removed(key: K): Map[K, V]
- abstract def updated[V1 >: V](key: K, value: V1): Map[K, V1]
Concrete Value Members
- final def !=(arg0: Any): Boolean
- final def ##(): Int
- def +[V1 >: V](kv: (K, V1)): Map[K, V1]
- def ++[V2 >: V](xs: IterableOnce[(K, V2)]): Map[K, V2]
- final def ++[B >: (K, V)](suffix: IterableOnce[B]): Iterable[B]
- final def -(key: K): Map[K, V]
- final def --(keys: IterableOnce[K]): Map[K, V]
- def ->[B](y: B): (Map[K, V], B)
- final def ==(arg0: Any): Boolean
- def addString(sb: mutable.StringBuilder, start: String, sep: String, end: String): mutable.StringBuilder
- final def addString(b: mutable.StringBuilder): mutable.StringBuilder
- final def addString(b: mutable.StringBuilder, sep: String): mutable.StringBuilder
- def andThen[C](k: PartialFunction[V, C]): PartialFunction[K, C]
- def andThen[C](k: (V) => C): PartialFunction[K, C]
- def apply(key: K): V
- def applyOrElse[K1 <: K, V1 >: V](x: K1, default: (K1) => V1): V1
- final def asInstanceOf[T0]: T0
- def canEqual(that: Any): Boolean
- def className: String
- def clone(): AnyRef
- final def coll: Map.this.type
- def collect[K2, V2](pf: PartialFunction[(K, V), (K2, V2)]): Map[K2, V2]
- def collect[B](pf: PartialFunction[(K, V), B]): Iterable[B]
- def collectFirst[B](pf: PartialFunction[(K, V), B]): Option[B]
- def compose[R](k: PartialFunction[R, K]): PartialFunction[R, V]
- def compose[A](g: (A) => K): (A) => V
- def concat[V2 >: V](suffix: IterableOnce[(K, V2)]): Map[K, V2]
- def concat[B >: (K, V)](suffix: IterableOnce[B]): Iterable[B]
- def contains(key: K): Boolean
- def copyToArray[B >: (K, V)](xs: Array[B], start: Int, len: Int): Int
- def copyToArray[B >: (K, V)](xs: Array[B], start: Int): Int
- def copyToArray[B >: (K, V)](xs: Array[B]): Int
- def corresponds[B](that: IterableOnce[B])(p: ((K, V), B) => Boolean): Boolean
- def count(p: ((K, V)) => Boolean): Int
- def default(key: K): V
- def drop(n: Int): Map[K, V]
- def dropRight(n: Int): Map[K, V]
- def dropWhile(p: ((K, V)) => Boolean): Map[K, V]
- def elementWise: ElementWiseExtractor[K, V]
- def empty: Map[K, V]
- def ensuring(cond: (Map[K, V]) => Boolean, msg: => Any): Map[K, V]
- def ensuring(cond: (Map[K, V]) => Boolean): Map[K, V]
- def ensuring(cond: Boolean, msg: => Any): Map[K, V]
- def ensuring(cond: Boolean): Map[K, V]
- final def eq(arg0: AnyRef): Boolean
- def equals(o: Any): Boolean
- def exists(p: ((K, V)) => Boolean): Boolean
- def filter(pred: ((K, V)) => Boolean): Map[K, V]
- def filterNot(pred: ((K, V)) => Boolean): Map[K, V]
- def finalize(): Unit
- def find(p: ((K, V)) => Boolean): Option[(K, V)]
- def flatMap[K2, V2](f: ((K, V)) => IterableOnce[(K2, V2)]): Map[K2, V2]
- def flatMap[B](f: ((K, V)) => IterableOnce[B]): Iterable[B]
- def flatten[B](implicit asIterable: ((K, V)) => IterableOnce[B]): Iterable[B]
- def fold[A1 >: (K, V)](z: A1)(op: (A1, A1) => A1): A1
- def foldLeft[B](z: B)(op: (B, (K, V)) => B): B
- def foldRight[B](z: B)(op: ((K, V), B) => B): B
- def forall(p: ((K, V)) => Boolean): Boolean
- def foreach[U](f: ((K, V)) => U): Unit
- def foreachEntry[U](f: (K, V) => U): Unit
- def formatted(fmtstr: String): String
- def fromSpecific(coll: IterableOnce[(K, V)]): Map[K, V]
- final def getClass(): Class[_ <: AnyRef]
- def getOrElse[V1 >: V](key: K, default: => V1): V1
- def groupBy[K](f: ((K, V)) => K): Map[K, Map[K, V]]
- def groupMap[K, B](key: ((K, V)) => K)(f: ((K, V)) => B): Map[K, Iterable[B]]
- def groupMapReduce[K, B](key: ((K, V)) => K)(f: ((K, V)) => B)(reduce: (B, B) => B): Map[K, B]
- def grouped(size: Int): Iterator[Map[K, V]]
- def hashCode(): Int
- def head: (K, V)
- def headOption: Option[(K, V)]
- def init: Map[K, V]
- def inits: Iterator[Map[K, V]]
- def isDefinedAt(key: K): Boolean
- def isEmpty: Boolean
- final def isInstanceOf[T0]: Boolean
- def isTraversableAgain: Boolean
- def iterableFactory: IterableFactory[Iterable]
- def keySet: Set[K]
- def keyStepper[S <: Stepper[_]](implicit shape: StepperShape[K, S]): S
- def keys: collection.Iterable[K]
- def keysIterator: Iterator[K]
- def knownSize: Int
- def last: (K, V)
- def lastOption: Option[(K, V)]
- def lazyZip[B](that: collection.Iterable[B]): LazyZip2[(K, V), B, Map.this.type]
- def lift: (K) => Option[V]
- def map[K2, V2](f: ((K, V)) => (K2, V2)): Map[K2, V2]
- def map[B](f: ((K, V)) => B): Iterable[B]
- def mapFactory: MapFactory[Map]
- final def mapFromIterable[K2, V2](it: collection.Iterable[(K2, V2)]): Map[K2, V2]
- def max[B >: (K, V)](implicit ord: math.Ordering[B]): (K, V)
- def maxBy[B](f: ((K, V)) => B)(implicit cmp: math.Ordering[B]): (K, V)
- def maxByOption[B](f: ((K, V)) => B)(implicit cmp: math.Ordering[B]): Option[(K, V)]
- def maxOption[B >: (K, V)](implicit ord: math.Ordering[B]): Option[(K, V)]
- def min[B >: (K, V)](implicit ord: math.Ordering[B]): (K, V)
- def minBy[B](f: ((K, V)) => B)(implicit cmp: math.Ordering[B]): (K, V)
- def minByOption[B](f: ((K, V)) => B)(implicit cmp: math.Ordering[B]): Option[(K, V)]
- def minOption[B >: (K, V)](implicit ord: math.Ordering[B]): Option[(K, V)]
- final def mkString: String
- final def mkString(sep: String): String
- final def mkString(start: String, sep: String, end: String): String
- final def ne(arg0: AnyRef): Boolean
- def newSpecificBuilder: Builder[(K, V), Map[K, V]]
- def nonEmpty: Boolean
- final def notify(): Unit
- final def notifyAll(): Unit
- def orElse[A1 <: K, B1 >: V](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
- def partition(p: ((K, V)) => Boolean): (Map[K, V], Map[K, V])
- def partitionMap[A1, A2](f: ((K, V)) => Either[A1, A2]): (Iterable[A1], Iterable[A2])
- def product[B >: (K, V)](implicit num: math.Numeric[B]): B
- def reduce[B >: (K, V)](op: (B, B) => B): B
- def reduceLeft[B >: (K, V)](op: (B, (K, V)) => B): B
- def reduceLeftOption[B >: (K, V)](op: (B, (K, V)) => B): Option[B]
- def reduceOption[B >: (K, V)](op: (B, B) => B): Option[B]
- def reduceRight[B >: (K, V)](op: ((K, V), B) => B): B
- def reduceRightOption[B >: (K, V)](op: ((K, V), B) => B): Option[B]
- def removedAll(keys: IterableOnce[K]): Map[K, V]
- def reversed: collection.Iterable[(K, V)]
- def runWith[U](action: (V) => U): (K) => Boolean
- def scan[B >: (K, V)](z: B)(op: (B, B) => B): Iterable[B]
- def scanLeft[B](z: B)(op: (B, (K, V)) => B): Iterable[B]
- def scanRight[B](z: B)(op: ((K, V), B) => B): Iterable[B]
- def size: Int
- def sizeCompare(that: collection.Iterable[_]): Int
- def sizeCompare(otherSize: Int): Int
- final def sizeIs: SizeCompareOps
- def slice(from: Int, until: Int): Map[K, V]
- def sliding(size: Int, step: Int): Iterator[Map[K, V]]
- def sliding(size: Int): Iterator[Map[K, V]]
- def span(p: ((K, V)) => Boolean): (Map[K, V], Map[K, V])
- def splitAt(n: Int): (Map[K, V], Map[K, V])
- def stepper[S <: Stepper[_]](implicit shape: StepperShape[(K, V), S]): S
- def stringPrefix: String
- def sum[B >: (K, V)](implicit num: math.Numeric[B]): B
- final def synchronized[T0](arg0: => T0): T0
- def tail: Map[K, V]
- def tails: Iterator[Map[K, V]]
- def take(n: Int): Map[K, V]
- def takeRight(n: Int): Map[K, V]
- def takeWhile(p: ((K, V)) => Boolean): Map[K, V]
- def tapEach[U](f: ((K, V)) => U): Map[K, V]
- def to[C1](factory: Factory[(K, V), C1]): C1
- def toArray[B >: (K, V)](implicit arg0: ClassTag[B]): Array[B]
- final def toBuffer[B >: (K, V)]: Buffer[B]
- def toIndexedSeq: IndexedSeq[(K, V)]
- final def toIterable: Map.this.type
- def toList: List[(K, V)]
- final def toMap[K2, V2](implicit ev: <:<[(K, V), (K2, V2)]): Map[K2, V2]
- def toSeq: Seq[(K, V)]
- def toSet[B >: (K, V)]: Set[B]
- def toString(): String
- def toVector: Vector[(K, V)]
- def transform[W](f: (K, V) => W): Map[K, W]
- def transpose[B](implicit asIterable: ((K, V)) => collection.Iterable[B]): Iterable[Iterable[B]]
- def unapply(a: K): Option[V]
- def unlift: PartialFunction[K, B]
- def unzip[A1, A2](implicit asPair: ((K, V)) => (A1, A2)): (Iterable[A1], Iterable[A2])
- def unzip3[A1, A2, A3](implicit asTriple: ((K, V)) => (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])
- def updatedWith[V1 >: V](key: K)(remappingFunction: (Option[V]) => Option[V1]): Map[K, V1]
- def valueStepper[S <: Stepper[_]](implicit shape: StepperShape[V, S]): S
- def values: collection.Iterable[V]
- def valuesIterator: Iterator[V]
- def view: MapView[K, V]
- final def wait(): Unit
- final def wait(arg0: Long, arg1: Int): Unit
- final def wait(arg0: Long): Unit
- def withDefault[V1 >: V](d: (K) => V1): Map[K, V1]
- def withDefaultValue[V1 >: V](d: V1): Map[K, V1]
- def withFilter(p: ((K, V)) => Boolean): MapOps.WithFilter[K, V, [x]Iterable[x], [x, y]Map[x, y]]
- def zip[B](that: IterableOnce[B]): Iterable[((K, V), B)]
- def zipAll[A1 >: (K, V), B](that: collection.Iterable[B], thisElem: A1, thatElem: B): Iterable[(A1, B)]
- def zipWithIndex: Iterable[((K, V), Int)]
Deprecated Value Members
- def +[V1 >: V](elem1: (K, V1), elem2: (K, V1), elems: (K, V1)*): Map[K, V1]
- def ++:[V1 >: V](that: IterableOnce[(K, V1)]): Map[K, V1]
- def ++:[B >: (K, V)](that: IterableOnce[B]): Iterable[B]
- def -(key1: K, key2: K, keys: K*): Map[K, V]
- def /:[B](z: B)(op: (B, (K, V)) => B): B
- final def /:[B](z: B)(op: (B, (K, V)) => B): B
- def :\[B](z: B)(op: ((K, V), B) => B): B
- final def :\[B](z: B)(op: ((K, V), B) => B): B
- def aggregate[B](z: => B)(seqop: (B, (K, V)) => B, combop: (B, B) => B): B
- def collectFirst[B](f: PartialFunction[(K, V), B]): Option[B]
- def companion: IterableFactory[[_]Iterable[_]]
- def copyToBuffer(dest: Buffer[(K, V)]): Unit
- final def copyToBuffer[B >: (K, V)](dest: Buffer[B]): Unit
- def count(f: ((K, V)) => Boolean): Int
- def exists(f: ((K, V)) => Boolean): Boolean
- def filter(f: ((K, V)) => Boolean): Iterator[(K, V)]
- def filterKeys(p: (K) => Boolean): MapView[K, V]
- def find(p: ((K, V)) => Boolean): Option[(K, V)]
- def flatMap[B](f: ((K, V)) => IterableOnce[B]): IterableOnce[B]
- def fold[A1 >: A](z: A1)(op: (A1, A1) => A1): A1
- def foldLeft[B](z: B)(op: (B, (K, V)) => B): B
- def foldRight[B](z: B)(op: ((K, V), B) => B): B
- def forall(f: ((K, V)) => Boolean): Boolean
- def foreach[U](f: ((K, V)) => U): Unit
- def hasDefiniteSize: Boolean
- def isEmpty: Boolean
- def map[B](f: ((K, V)) => B): IterableOnce[B]
- def mapValues[W](f: (V) => W): MapView[K, W]
- def max(implicit ord: math.Ordering[(K, V)]): (K, V)
- def maxBy[B](f: ((K, V)) => B)(implicit cmp: math.Ordering[B]): (K, V)
- def min(implicit ord: math.Ordering[(K, V)]): (K, V)
- def minBy[B](f: ((K, V)) => B)(implicit cmp: math.Ordering[B]): (K, V)
- def mkString: String
- def mkString(sep: String): String
- def mkString(start: String, sep: String, end: String): String
- def nonEmpty: Boolean
- def product(implicit num: math.Numeric[(K, V)]): (K, V)
- def reduce(f: ((K, V), (K, V)) => (K, V)): (K, V)
- def reduceLeft(f: ((K, V), (K, V)) => (K, V)): (K, V)
- def reduceLeftOption(f: ((K, V), (K, V)) => (K, V)): Option[(K, V)]
- def reduceOption(f: ((K, V), (K, V)) => (K, V)): Option[(K, V)]
- def reduceRight(f: ((K, V), (K, V)) => (K, V)): (K, V)
- def reduceRightOption(f: ((K, V), (K, V)) => (K, V)): Option[(K, V)]
- final def repr: Map[K, V]
- def sameElements[B >: A](that: IterableOnce[B]): Boolean
- def seq: Map.this.type
- def size: Int
- def sum(implicit num: math.Numeric[(K, V)]): (K, V)
- def to[C1](factory: Factory[(K, V), C1]): C1
- def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
- def toBuffer[B >: A]: Buffer[B]
- def toIndexedSeq: collection.IndexedSeq[(K, V)]
- final def toIterable: collection.Iterable[(K, V)]
- def toIterator: Iterator[(K, V)]
- final def toIterator: Iterator[(K, V)]
- def toList: List[(K, V)]
- def toMap[K, V](implicit ev: <:<[(K, V), (K, V)]): Map[K, V]
- def toSeq: Seq[(K, V)]
- def toSet[B >: A]: Set[B]
- def toStream: Stream[(K, V)]
- final def toStream: Stream[(K, V)]
- final def toTraversable: collection.Traversable[(K, V)]
- final def toTraversable: collection.Traversable[(K, V)]
- def toVector: Vector[(K, V)]
- def view(from: Int, until: Int): View[(K, V)]
- def withFilter(f: ((K, V)) => Boolean): Iterator[(K, V)]
- def →[B](y: B): (Map[K, V], B)