class ReplicatedRegisterMap[K, V] extends InternalReplicatedData
A Map of registers. Uses ReplicatedRegister 's as values.
- K
The type for keys.
- V
The type for values.
- Alphabetic
- By Inheritance
- ReplicatedRegisterMap
- InternalReplicatedData
- InternalReplicatedData
- ReplicatedData
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Type Members
- final type Self = ReplicatedRegisterMap[K, V]
- Definition Classes
- ReplicatedRegisterMap → 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 ReplicatedRegisterMap[K, V] toany2stringadd[ReplicatedRegisterMap[K, V]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (ReplicatedRegisterMap[K, V], B)
- Implicit
- This member is added by an implicit conversion from ReplicatedRegisterMap[K, V] toArrowAssoc[ReplicatedRegisterMap[K, V]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(key: K): V
Get the register value for the given key.
Get the register value for the given key.
- key
the key for the register
- returns
the register value for the key
- Exceptions thrown
java.util.NoSuchElementException
if the key is not preset in the map
- final def applyDelta: PartialFunction[Delta, ReplicatedRegisterMap[K, V]]
- Definition Classes
- ReplicatedRegisterMap → InternalReplicatedData
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clear(): ReplicatedRegisterMap[K, V]
Remove all mappings from this register map.
Remove all mappings from this register map.
- returns
a new empty register map
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def containsKey(key: K): Boolean
Check whether this register map contains a mapping for the given key.
Check whether this register map contains a mapping for the given key.
- key
key whose presence in this map is to be tested
- returns
true
if this register map contains a mapping for the given key
- val delegate: ReplicatedRegisterMapImpl[K, V]
- Definition Classes
- ReplicatedRegisterMap → InternalReplicatedData
- def ensuring(cond: (ReplicatedRegisterMap[K, V]) => Boolean, msg: => Any): ReplicatedRegisterMap[K, V]
- Implicit
- This member is added by an implicit conversion from ReplicatedRegisterMap[K, V] toEnsuring[ReplicatedRegisterMap[K, V]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (ReplicatedRegisterMap[K, V]) => Boolean): ReplicatedRegisterMap[K, V]
- Implicit
- This member is added by an implicit conversion from ReplicatedRegisterMap[K, V] toEnsuring[ReplicatedRegisterMap[K, V]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): ReplicatedRegisterMap[K, V]
- Implicit
- This member is added by an implicit conversion from ReplicatedRegisterMap[K, V] toEnsuring[ReplicatedRegisterMap[K, V]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): ReplicatedRegisterMap[K, V]
- Implicit
- This member is added by an implicit conversion from ReplicatedRegisterMap[K, V] toEnsuring[ReplicatedRegisterMap[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): Option[V]
Optionally returns the current value of the register at the given key.
Optionally returns the current value of the register at the given key.
- key
the key for the register
- returns
the current value of the register, if it exists (as an Option)
- 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 register map is empty.
Check whether this register map is empty.
- returns
true
if this register map contains no key-register mappings
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def keySet: Set[K]
Get a scala.collection.immutable.Set view of the keys contained in this register map.
Get a scala.collection.immutable.Set view of the keys contained in this register map.
- returns
the keys contained in this register 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 remove(key: K): ReplicatedRegisterMap[K, V]
Remove the mapping for a key if it is present.
Remove the mapping for a key if it is present.
- key
key whose mapping is to be removed from the map
- returns
a new register map with the removed mapping
- final def resetDelta(): ReplicatedRegisterMap[K, V]
- Definition Classes
- ReplicatedRegisterMap → InternalReplicatedData
- def setValue(key: K, value: V, clock: Clock, customClockValue: Long): ReplicatedRegisterMap[K, V]
Set the current value of the register at the given key, using the given clock and custom clock value if required.
Set the current value of the register at the given key, using the given clock and custom clock value if required.
- key
the key for the register
- value
the new value of the register
- clock
the clock to use for replication
- customClockValue
the custom clock value to use, only if it's a custom clock
- returns
a new register map with the updated value
- def setValue(key: K, value: V): ReplicatedRegisterMap[K, V]
Set the current value of the register at the given key, using the default clock.
Set the current value of the register at the given key, using the default clock.
- key
the key for the register
- value
the new value of the register
- returns
a new register map with the updated value
- def size: Int
Get the number of key-register mappings in this register map.
Get the number of key-register mappings in this register map.
- returns
the number of key-register mappings in this register 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 ReplicatedRegisterMap[K, V] toStringFormat[ReplicatedRegisterMap[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): (ReplicatedRegisterMap[K, V], B)
- Implicit
- This member is added by an implicit conversion from ReplicatedRegisterMap[K, V] toArrowAssoc[ReplicatedRegisterMap[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.