final class TreeMapOps[A, B] extends AnyVal
- Source
- TreeMap.scala
- Alphabetic
- By Inheritance
- TreeMapOps
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mergeAll[C, D](that: Map[A, C])(f: (Ior[B, C]) => D)(implicit ev: Ordering[A]): TreeMap[A, D]
Merges two maps together according to the supplied function.
Merges two maps together according to the supplied function. The function takes an
Iorwith the value from this map and/or the value from that map for each key present in either map.- that
the map to merge with this one
- f
function that combines the values
- def mergeMatchingKeys[C, D](that: Map[A, C])(f: (B, Option[C]) => D)(implicit ev: Ordering[A]): TreeMap[A, D]
Combines this map with the values of matching keys from
thatmap using supplied function.Combines this map with the values of matching keys from
thatmap using supplied function. Keys that only exist inthatare ignored, but the value of keys that exist in this map but not inthatmap are passed to the function as None.- that
the map to combine with this one
- f
function that combines the values
- val self: TreeMap[A, B]
- def toString(): String
- Definition Classes
- Any