class ReplicatedMultiMap[K, V] extends InternalReplicatedData
A replicated map that maps keys to values, where each key may be associated with multiple values. Effectively a ReplicatedMap with ReplicatedSet s as values.
- K
The type for keys.
- V
The type for values.
- Source
- ReplicatedMultiMap.scala
- Alphabetic
- By Inheritance
- ReplicatedMultiMap
- InternalReplicatedData
- InternalReplicatedData
- ReplicatedData
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Type Members
- final type Self = ReplicatedMultiMap[K, V]
- Definition Classes
- ReplicatedMultiMap → InternalReplicatedData
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from ReplicatedMultiMap[K, V] toany2stringadd[ReplicatedMultiMap[K, V]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (ReplicatedMultiMap[K, V], B)
- Implicit
- This member is added by an implicit conversion from ReplicatedMultiMap[K, V] toArrowAssoc[ReplicatedMultiMap[K, V]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def applyDelta: PartialFunction[Delta, ReplicatedMultiMap[K, V]]
- Definition Classes
- ReplicatedMultiMap → InternalReplicatedData
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clear(): ReplicatedMultiMap[K, V]
Remove all key-value pairs from the multi-map, leaving it empty.
Remove all key-value pairs from the multi-map, leaving it empty.
- returns
a new empty multi-map
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def contains(key: K): Boolean
Check whether this multi-map contains at least one value for the given key.
Check whether this multi-map contains at least one value for the given key.
- key
the key of the mapping to check
- returns
true
if there is at least one key-value pair for the key
- def containsValue(key: K, value: V): Boolean
Check whether this multi-map contains the given value associated with the given key.
Check whether this multi-map contains the given value associated with the given key.
- key
the key of the mapping to check
- value
the value of the mapping to check
- returns
true
if the key-value pair is in this multi-map
- val delegate: ReplicatedMultiMapImpl[K, V]
- Definition Classes
- ReplicatedMultiMap → InternalReplicatedData
- def ensuring(cond: (ReplicatedMultiMap[K, V]) => Boolean, msg: => Any): ReplicatedMultiMap[K, V]
- Implicit
- This member is added by an implicit conversion from ReplicatedMultiMap[K, V] toEnsuring[ReplicatedMultiMap[K, V]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (ReplicatedMultiMap[K, V]) => Boolean): ReplicatedMultiMap[K, V]
- Implicit
- This member is added by an implicit conversion from ReplicatedMultiMap[K, V] toEnsuring[ReplicatedMultiMap[K, V]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): ReplicatedMultiMap[K, V]
- Implicit
- This member is added by an implicit conversion from ReplicatedMultiMap[K, V] toEnsuring[ReplicatedMultiMap[K, V]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): ReplicatedMultiMap[K, V]
- Implicit
- This member is added by an implicit conversion from ReplicatedMultiMap[K, V] toEnsuring[ReplicatedMultiMap[K, V]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def get(key: K): Set[V]
Get the values for the given key.
Get the values for the given key.
- key
the key of the mapping
- returns
the current values at the given key, or an empty Set
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getDelta: Delta
- Definition Classes
- InternalReplicatedData → InternalReplicatedData
- def hasDelta: Boolean
- Definition Classes
- InternalReplicatedData → InternalReplicatedData
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def isEmpty: Boolean
Check whether this multi-map is empty.
Check whether this multi-map is empty.
- returns
true
if this multi-map contains no key-value pairs
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def keySet: Set[K]
Return the keys contained in this multi-map.
Return the keys contained in this multi-map.
Note that the key set contains a key if and only if this multi-map maps that key to at least one value.
- returns
the set of keys in this multi-map
- def name: String
- Definition Classes
- InternalReplicatedData → InternalReplicatedData
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def put(key: K, value: V): ReplicatedMultiMap[K, V]
Store a key-value pair, if not already present.
Store a key-value pair, if not already present.
- key
the key of the mapping to add to
- value
the value to add to the mapping
- returns
a new multi-map with the additional value, or this unchanged multi-map
- def putAll(key: K, values: Iterable[V]): ReplicatedMultiMap[K, V]
Store multiple values for a key.
Store multiple values for a key.
- key
the key of the mapping to add to
- values
the values to add to the mapping
- returns
a new multi-map with the additional values, or this unchanged multi-map
- def remove(key: K, value: V): ReplicatedMultiMap[K, V]
Remove a single key-value pair for the given key and value, if present.
Remove a single key-value pair for the given key and value, if present.
- key
the key of the mapping to remove from
- value
the value to remove from the mapping
- returns
a new multi-map with the removed value, or this unchanged multi-map
- def removeAll(key: K): ReplicatedMultiMap[K, V]
Remove all values associated with the given key.
Remove all values associated with the given key.
- key
the key of the mapping to remove
- returns
a new multi-map with the removed mapping
- final def resetDelta(): ReplicatedMultiMap[K, V]
- Definition Classes
- ReplicatedMultiMap → InternalReplicatedData
- def size: Int
Return the number of key-value pairs in this multi-map.
Return the number of key-value pairs in this multi-map.
Note that this does not return the number of distinct keys, which is given by
keySet().size()
, but the total number of values stored in the multi-map.- returns
the number of key-value pairs stored in this multi-map
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ReplicatedMultiMap[K, V] toStringFormat[ReplicatedMultiMap[K, V]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (ReplicatedMultiMap[K, V], B)
- Implicit
- This member is added by an implicit conversion from ReplicatedMultiMap[K, V] toArrowAssoc[ReplicatedMultiMap[K, V]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.