Class/Object

io.reactors.container

RHashMap

Related Docs: object RHashMap | package container

Permalink

class RHashMap[K, V >: Null <: AnyRef] extends RMap[K, V] with Modifiable

A reactive hash map.

In addition to standard inserts and removes, and other container event streams, reactive hash maps expose event streams with elements at specific keys.

K

type of the keys in the map, specialized

V

type of the values in the map, must be a reference parameter

Linear Supertypes
Modifiable, RMap[K, V], RContainer[K], Subscription, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RHashMap
  2. Modifiable
  3. RMap
  4. RContainer
  5. Subscription
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RHashMap()(implicit arrayable: Arrayable[K], hash: Hash[K], spec: Spec[K])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from RHashMap[K, V] to any2stringadd[RHashMap[K, V]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def +=(kv: (K, V)): V

    Permalink

    Adds a key-value pair to the map.

    Adds a key-value pair to the map.

    If a key equal to the key from the pair already exists in the map, the existing mapping is removed.

  5. def -=(kv: (K, V)): Boolean

    Permalink

    Removes a key-value pair from the map.

    Removes a key-value pair from the map.

    A key-value pair is removed iff the same key-value pair already exists in the map.

  6. def ->[B](y: B): (RHashMap[K, V], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from RHashMap[K, V] to ArrowAssoc[RHashMap[K, V]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  7. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def acquireModify(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Modifiable
  9. def adds: Events[K]

    Permalink

    Creates an event stream that emits newly inserted keys.

    Creates an event stream that emits newly inserted keys.

    returns

    event stream with newly inserted keys

    Definition Classes
    RMap
  10. def andThen(action: ⇒ Unit): Subscription

    Permalink
    Definition Classes
    Subscription
  11. def apply(key: K): V

    Permalink

    Returns the value at the specified key, or throws an exception if there is none.

    Returns the value at the specified key, or throws an exception if there is none.

    Definition Classes
    RHashMapRMap
  12. def applyOrNil(key: K): V

    Permalink

    Gets the value at the specified key, or nil if there is none.

  13. implicit val arrayable: Arrayable[K]

    Permalink
  14. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  15. def at(key: K): Events[V]

    Permalink

    Returns an event stream that emits values stored at a specific key.

    Returns an event stream that emits values stored at a specific key.

    Each time that the value at the key is updated, an event is emitted. The initial value is emitted to the event stream when subscribing to the event stream. If there is no value associated with the key, or a value was just removed, then nil is emitted.

    key

    key for which to emit values

  16. def chain(other: Subscription): Subscription

    Permalink
    Definition Classes
    Subscription
  17. def clear()(implicit s: Spec[K]): Unit

    Permalink

    Removes all elements from the map.

  18. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. def collect[S <: AnyRef](pf: PartialFunction[K, S])(implicit e: <:<[K, AnyRef]): RContainer[S]

    Permalink

    Incrementally collects and transforms elements on which the function is defined.

    Incrementally collects and transforms elements on which the function is defined.

    The partial function must be an injection.

    Definition Classes
    RContainer
  20. def collectValue[W](pf: PartialFunction[V, W]): RMap[K, W]

    Permalink

    Filters and maps the values for which the partial function is defined.

    Filters and maps the values for which the partial function is defined.

    Definition Classes
    RMap
  21. def contains(key: K): Boolean

    Permalink

    Checks if the given key exists in the map.

  22. def count(p: (K) ⇒ Boolean): Events[Int]

    Permalink

    Stream with the current number of elements satisfying a predicate.

    Stream with the current number of elements satisfying a predicate.

    Definition Classes
    RContainer
  23. def ensuring(cond: (RHashMap[K, V]) ⇒ Boolean, msg: ⇒ Any): RHashMap[K, V]

    Permalink
    Implicit information
    This member is added by an implicit conversion from RHashMap[K, V] to Ensuring[RHashMap[K, V]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  24. def ensuring(cond: (RHashMap[K, V]) ⇒ Boolean): RHashMap[K, V]

    Permalink
    Implicit information
    This member is added by an implicit conversion from RHashMap[K, V] to Ensuring[RHashMap[K, V]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  25. def ensuring(cond: Boolean, msg: ⇒ Any): RHashMap[K, V]

    Permalink
    Implicit information
    This member is added by an implicit conversion from RHashMap[K, V] to Ensuring[RHashMap[K, V]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  26. def ensuring(cond: Boolean): RHashMap[K, V]

    Permalink
    Implicit information
    This member is added by an implicit conversion from RHashMap[K, V] to Ensuring[RHashMap[K, V]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  27. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  29. def exists(p: (K) ⇒ Boolean): Events[Boolean]

    Permalink

    Stream with boolean values indicating if some element satisfied a predicate.

    Stream with boolean values indicating if some element satisfied a predicate.

    Definition Classes
    RContainer
  30. def filter(p: (K) ⇒ Boolean): RContainer[K]

    Permalink

    Incrementally filters elements from the current container.

    Incrementally filters elements from the current container.

    Definition Classes
    RContainer
  31. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  32. def forall(p: (K) ⇒ Boolean): Events[Boolean]

    Permalink

    Stream with boolean values indicating if all elements satisfy a predicate.

    Stream with boolean values indicating if all elements satisfy a predicate.

    Definition Classes
    RContainer
  33. def foreach(f: (K) ⇒ Unit): Unit

    Permalink

    Traverses the elements of the container.

    Traverses the elements of the container.

    Definition Classes
    RHashMapRContainer
  34. def foreachTuple(f: ((K, V)) ⇒ Unit): Unit

    Permalink
  35. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from RHashMap[K, V] to StringFormat[RHashMap[K, V]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  36. def get(key: K): Option[V]

    Permalink

    Optionally gets the value associated to the specified key.

  37. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  38. implicit val hash: Hash[K]

    Permalink
  39. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  40. def init(k: K): Unit

    Permalink
    Attributes
    protected
  41. def inserts: Events[K]

    Permalink

    Event stream with inserted elements.

    Event stream with inserted elements.

    Definition Classes
    RHashMapRContainer
  42. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  43. def map[S](f: (K) ⇒ S): RContainer[S]

    Permalink

    Incrementally maps elements from the current container.

    Incrementally maps elements from the current container.

    Function f for the map must be an injection, that is, for any two elements x and y that are not equal (x != y), f(x) **cannot be equal to** f(y).

    Definition Classes
    RContainer
  44. def modified: Events[Unit]

    Permalink

    A stream of modifications events.

    A stream of modifications events.

    This stream is called immediately after the inserts and removes event streams emit values, and immediately before a modification method returns. Together with inserts and removes, it can be used to create event streams that, for example, track only the insertion of the new keys into the map, or modification of existing keys in the map.

    returns

    event stream with an event emitted per modification operation

    Definition Classes
    RHashMapRMap
  45. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  46. def nil: V

    Permalink

    Denotes the absence of values at various keys.

  47. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  48. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  49. def pairs: RContainer[(K, V)]

    Permalink

    Converts this map into a container of key-value pairs.

    Converts this map into a container of key-value pairs.

    Note: this operation boxes the keys and values into tuple objects.

    returns

    a container with the key-value pairs in this map

    Definition Classes
    RMap
  50. def reduce[S](z: S)(op: (S, K) ⇒ S)(inv: (S, K) ⇒ S): Events[S]

    Permalink

    Stream with the reduction of the current set of elements in this container.

    Stream with the reduction of the current set of elements in this container.

    Parameters op, inv and z must for an Abelian group, that is, z is the neutral element, and inv is the inverse operation of op, in the sense that inv(op(s, t), t) == op(inv(s, t), t) == s is always true.

    Definition Classes
    RContainer
  51. def releaseModify(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Modifiable
  52. def remove(key: K): Boolean

    Permalink

    Removes the mapping at the specified key.

  53. def removes: Events[K]

    Permalink

    Event stream with removed elements.

    Event stream with removed elements.

    Definition Classes
    RHashMapRContainer
  54. def size: Int

    Permalink

    Returns the number of elements in the container.

    Returns the number of elements in the container.

    Definition Classes
    RHashMapRContainer
  55. def sizes(implicit s: Spec[K]): Events[Int]

    Permalink

    Stream with the sizes of this container.

    Stream with the sizes of this container.

    Definition Classes
    RContainer
  56. implicit val spec: Spec[K]

    Permalink
  57. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  58. def to[That](implicit factory: Factory[K, That]): That

    Permalink

    Incrementally copies this container to another container type.

    Incrementally copies this container to another container type.

    Materializes another container, such that all the elements from this container are visible in the target container.

    Users may call unsubscribe on the resulting container to stop incremental updates. Losing the container and failing to call unsubscribe may result in a time leak.

    Definition Classes
    RContainer
  59. def toAggregate(z: K)(op: (K, K) ⇒ K): Signal[K]

    Permalink

    Creates a signal that is the fold of the elements in the container.

    Creates a signal that is the fold of the elements in the container.

    Neutral element z and the associative operator op must form a monoid.

    Definition Classes
    RContainer
  60. def toCommuteAggregate(z: K)(op: (K, K) ⇒ K): Signal[K]

    Permalink

    Creates a signal that is the commutative fold of the elements in the container.

    Creates a signal that is the commutative fold of the elements in the container.

    Neutral element z and the commutative, associative operator op must for a monoid.

    Definition Classes
    RContainer
  61. def toMap[That](implicit factory: Factory[K, V, That]): That

    Permalink

    Converts this reactive map into another reactive map.

    Converts this reactive map into another reactive map.

    Definition Classes
    RMap
  62. def toSignalAggregate[S](z: S)(op: (S, S) ⇒ S)(implicit e: <:<[K, Signal[S]]): Signal[S]

    Permalink

    Converts this container of signals into a signal aggregate.

    Converts this container of signals into a signal aggregate.

    Definition Classes
    RContainer
  63. def toString(): String

    Permalink
    Definition Classes
    RHashMap → AnyRef → Any
  64. def union(that: RContainer[K])(implicit a: Arrayable[K], h: Hash[K]): RContainer[K]

    Permalink

    Incrementally produces a union of the elements in the two containers.

    Incrementally produces a union of the elements in the two containers.

    This container combinator creates a subscription on the source combinators, so calling unsubscribe will stop incremental updates.

    Definition Classes
    RContainer
  65. def unsubscribe(): Unit

    Permalink

    Unsubscribes the container from its input event streams.

    Unsubscribes the container from its input event streams.

    Definition Classes
    RHashMapRContainer → Subscription
  66. def update(key: K, value: V): Unit

    Permalink

    Updates the value at the specific key.

  67. def updates: Events[K]

    Permalink

    Creates an stream that emits updates to keys that were already in the map.

    Creates an stream that emits updates to keys that were already in the map.

    returns

    event stream with modified keys that had already been in the map

    Definition Classes
    RMap
  68. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  69. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  70. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  71. def [B](y: B): (RHashMap[K, V], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from RHashMap[K, V] to ArrowAssoc[RHashMap[K, V]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Modifiable

Inherited from RMap[K, V]

Inherited from RContainer[K]

Inherited from Subscription

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from RHashMap[K, V] to any2stringadd[RHashMap[K, V]]

Inherited by implicit conversion StringFormat from RHashMap[K, V] to StringFormat[RHashMap[K, V]]

Inherited by implicit conversion Ensuring from RHashMap[K, V] to Ensuring[RHashMap[K, V]]

Inherited by implicit conversion ArrowAssoc from RHashMap[K, V] to ArrowAssoc[RHashMap[K, V]]

Ungrouped