Scala Standard Library 2.13.15 - scala.collection.SortedMap (original) (raw)

trait SortedMap[K, +V] extends Map[K, V] with SortedMapOps[K, V, SortedMap, SortedMap[K, V]] with SortedMapFactoryDefaults[K, V, SortedMap, Iterable, Map]

Ordering

  1. Alphabetic
  2. By Inheritance

Inherited

  1. SortedMap
  2. SortedMapFactoryDefaults
  3. SortedMapOps
  4. SortedOps
  5. Map
  6. Equals
  7. MapFactoryDefaults
  8. MapOps
  9. PartialFunction
  10. Function1
  11. Iterable
  12. IterableFactoryDefaults
  13. IterableOps
  14. IterableOnceOps
  15. IterableOnce
  16. AnyRef
  17. 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

Type Members

  1. trait GenKeySet extends AnyRef
  2. class KeySet extends AbstractSet[K] with GenKeySet with DefaultSerializable
  3. trait GenKeySortedSet extends GenKeySet
  4. class KeySortedSet extends SortedSet[K] with GenKeySet with GenKeySortedSet

Abstract Value Members

  1. abstract def get(key: K): Option[V]
  2. abstract def iterator: Iterator[(K, V)]
  3. abstract def iteratorFrom(start: K): Iterator[(K, V)]
  4. abstract def keysIteratorFrom(start: K): Iterator[K]
  5. abstract def ordering: Ordering[K]
  6. abstract def rangeImpl(from: Option[K], until: Option[K]): SortedMap[K, V]
  7. abstract def -(key1: K, key2: K, keys: K*): Map[K, V]
  8. abstract def -(key: K): Map[K, V]

Concrete Value Members

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

Deprecated Value Members

  1. def +[V1 >: V](elem1: (K, V1), elem2: (K, V1), elems: (K, V1)*): SortedMap[K, V1]
  2. def +[V1 >: V](kv: (K, V1)): SortedMap[K, V1]
  3. def ++:[V1 >: V](that: IterableOnce[(K, V1)]): Map[K, V1]
  4. def ++:[B >: (K, V)](that: IterableOnce[B]): Iterable[B]
  5. def --(keys: IterableOnce[K]): SortedMap[K, V]
  6. def /:[B](z: B)(op: (B, (K, V)) => B): B
  7. final def /:[B](z: B)(op: (B, (K, V)) => B): B
  8. def :\[B](z: B)(op: ((K, V), B) => B): B
  9. final def :\[B](z: B)(op: ((K, V), B) => B): B
  10. def aggregate[B](z: => B)(seqop: (B, (K, V)) => B, combop: (B, B) => B): B
  11. def collectFirst[B](f: PartialFunction[(K, V), B]): Option[B]
  12. def companion: IterableFactory[Iterable]
  13. def compare(k0: K, k1: K): Int
  14. def copyToBuffer(dest: Buffer[(K, V)]): Unit
  15. final def copyToBuffer[B >: (K, V)](dest: Buffer[B]): Unit
  16. def count(f: ((K, V)) => Boolean): Int
  17. def exists(f: ((K, V)) => Boolean): Boolean
  18. def filter(f: ((K, V)) => Boolean): Iterator[(K, V)]
  19. def filterKeys(p: (K) => Boolean): MapView[K, V]
  20. def find(p: ((K, V)) => Boolean): Option[(K, V)]
  21. def flatMap[B](f: ((K, V)) => IterableOnce[B]): IterableOnce[B]
  22. def fold[A1 >: A](z: A1)(op: (A1, A1) => A1): A1
  23. def foldLeft[B](z: B)(op: (B, (K, V)) => B): B
  24. def foldRight[B](z: B)(op: ((K, V), B) => B): B
  25. def forall(f: ((K, V)) => Boolean): Boolean
  26. def foreach[U](f: ((K, V)) => U): Unit
  27. def formatted(fmtstr: String): String
  28. final def from(from: K): SortedMap[K, V]
  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: SortedMap[K, V]
  49. def sameElements[B >: A](that: IterableOnce[B]): Boolean
  50. def seq: SortedMap.this.type
  51. def size: Int
  52. def sum(implicit num: math.Numeric[(K, V)]): (K, V)
  53. def to[C1](factory: Factory[(K, V), C1]): C1
  54. final def to(to: K): SortedMap[K, V]
  55. def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
  56. def toBuffer[B >: A]: Buffer[B]
  57. def toIndexedSeq: IndexedSeq[(K, V)]
  58. final def toIterable: Iterable[(K, V)]
  59. final def toIterable: SortedMap.this.type
  60. def toIterator: Iterator[(K, V)]
  61. final def toIterator: Iterator[(K, V)]
  62. def toList: immutable.List[(K, V)]
  63. def toMap[K, V](implicit ev: <:<[(K, V), (K, V)]): immutable.Map[K, V]
  64. def toSeq: immutable.Seq[(K, V)]
  65. def toSet[B >: A]: immutable.Set[B]
  66. def toStream: immutable.Stream[(K, V)]
  67. final def toStream: immutable.Stream[(K, V)]
  68. final def toTraversable: Traversable[(K, V)]
  69. final def toTraversable: Traversable[(K, V)]
  70. def toVector: immutable.Vector[(K, V)]
  71. final def until(until: K): SortedMap[K, V]
  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): (SortedMap[K, V], B)

Inherited from SortedMapFactoryDefaults[K, V, SortedMap, Iterable, Map]

Inherited from SortedMapOps[K, V, SortedMap, SortedMap[K, V]]

Inherited from SortedOps[K, SortedMap[K, V]]

Inherited from Map[K, V]

Inherited from Equals

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

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

Inherited from PartialFunction[K, V]

Inherited from (K) => V

Inherited from Iterable[(K, V)]

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

Inherited from IterableOps[(K, V), Iterable, SortedMap[K, V]]

Inherited from IterableOnceOps[(K, V), Iterable, SortedMap[K, V]]

Inherited from IterableOnce[(K, V)]

Inherited from AnyRef

Inherited from Any

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

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

Inherited by implicit conversion any2stringadd fromSortedMap[K, V] to any2stringadd[SortedMap[K, V]]

Inherited by implicit conversion StringFormat fromSortedMap[K, V] to StringFormat[SortedMap[K, V]]

Inherited by implicit conversion Ensuring fromSortedMap[K, V] to Ensuring[SortedMap[K, V]]

Inherited by implicit conversion ArrowAssoc fromSortedMap[K, V] to ArrowAssoc[SortedMap[K, V]]

Ungrouped