io.reactors.container

CommuteCatamorph

class CommuteCatamorph[T, S] extends RCatamorph[T, S]

Stores elements that form a commutative monoid.

Elements are incrementally aggregated using a binary operator that is associative and commutative. The value of the aggregation can be accessed with the signal method.

Linear Supertypes
RCatamorph[T, S], RContainer[S], Subscription, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CommuteCatamorph
  2. RCatamorph
  3. RContainer
  4. Subscription
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CommuteCatamorph(get: (S) ⇒ T, zero: T, op: (T, T) ⇒ T)

Value Members

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

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

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

    Implicit information
    This member is added by an implicit conversion from CommuteCatamorph[T, S] to any2stringadd[CommuteCatamorph[T, S]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def +=(v: S): Boolean

    Definition Classes
    CommuteCatamorphRCatamorph
  5. def -=(v: S): Boolean

    Definition Classes
    CommuteCatamorphRCatamorph
  6. def ->[B](y: B): (CommuteCatamorph[T, S], B)

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

    Definition Classes
    AnyRef → Any
  8. def and(action: ⇒ Unit): Subscription

    Definition Classes
    Subscription
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

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

    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
  12. def container: CommuteCatamorph[T, S]

  13. def count(p: (S) ⇒ Boolean): Events[Int]

    Stream with the current number of elements satisfying a predicate.

    Stream with the current number of elements satisfying a predicate.

    Definition Classes
    RContainer
  14. def ensuring(cond: (CommuteCatamorph[T, S]) ⇒ Boolean, msg: ⇒ Any): CommuteCatamorph[T, S]

    Implicit information
    This member is added by an implicit conversion from CommuteCatamorph[T, S] to Ensuring[CommuteCatamorph[T, S]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: (CommuteCatamorph[T, S]) ⇒ Boolean): CommuteCatamorph[T, S]

    Implicit information
    This member is added by an implicit conversion from CommuteCatamorph[T, S] to Ensuring[CommuteCatamorph[T, S]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean, msg: ⇒ Any): CommuteCatamorph[T, S]

    Implicit information
    This member is added by an implicit conversion from CommuteCatamorph[T, S] to Ensuring[CommuteCatamorph[T, S]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean): CommuteCatamorph[T, S]

    Implicit information
    This member is added by an implicit conversion from CommuteCatamorph[T, S] to Ensuring[CommuteCatamorph[T, S]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  20. def exists(p: (S) ⇒ Boolean): Events[Boolean]

    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
  21. def filter(p: (S) ⇒ Boolean): RContainer[S]

    Incrementally filters elements from the current container.

    Incrementally filters elements from the current container.

    Definition Classes
    RContainer
  22. def finalize(): Unit

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

    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
  24. def foreach(f: (S) ⇒ Unit): Unit

    Traverses the elements of the container.

    Traverses the elements of the container.

    Definition Classes
    CommuteCatamorphRContainer
  25. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from CommuteCatamorph[T, S] to StringFormat[CommuteCatamorph[T, S]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  26. val get: (S) ⇒ T

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

    Definition Classes
    AnyRef → Any
  28. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  29. def init(s: CommuteCatamorph[T, S]): Unit

  30. def inserts: Events[S]

    Event stream with inserted elements.

    Event stream with inserted elements.

    Definition Classes
    CommuteCatamorphRContainer
  31. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  32. def map[S](f: (S) ⇒ S): RContainer[S]

    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
  33. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  34. def newLeaf(v: S, f: (S) ⇒ T): Leaf[T]

    Attributes
    protected
  35. final def notify(): Unit

    Definition Classes
    AnyRef
  36. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  37. val op: (T, T) ⇒ T

  38. def push(v: S): Boolean

    Definition Classes
    CommuteCatamorphRCatamorph
  39. def reduce[S](z: S)(op: (S, S) ⇒ S)(inv: (S, S) ⇒ S): Events[S]

    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
  40. def removes: Events[S]

    Event stream with removed elements.

    Event stream with removed elements.

    Definition Classes
    CommuteCatamorphRContainer
  41. def signal: Signal[T]

    Definition Classes
    CommuteCatamorphRCatamorph
  42. def size: Int

    Returns the number of elements in the container.

    Returns the number of elements in the container.

    Definition Classes
    CommuteCatamorphRContainer
  43. def sizes(implicit s: Spec[S]): Events[Int]

    Stream with the sizes of this container.

    Stream with the sizes of this container.

    Definition Classes
    RContainer
  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  45. def to[That](implicit factory: Factory[S, That]): That

    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
  46. def toAggregate(z: S)(op: (S, S) ⇒ S): Signal[S]

    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
  47. def toCommuteAggregate(z: S)(op: (S, S) ⇒ S): Signal[S]

    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
  48. def toString(): String

    Definition Classes
    AnyRef → Any
  49. def union(that: RContainer[S])(implicit a: Arrayable[S], h: Hash[S]): RContainer[S]

    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
  50. def unsubscribe(): Unit

    Unsubscribes the container from its input event streams.

    Unsubscribes the container from its input event streams.

    Definition Classes
    CommuteCatamorphRContainer → Subscription
  51. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. val zero: T

  55. def [B](y: B): (CommuteCatamorph[T, S], B)

    Implicit information
    This member is added by an implicit conversion from CommuteCatamorph[T, S] to ArrowAssoc[CommuteCatamorph[T, S]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from RCatamorph[T, S]

Inherited from RContainer[S]

Inherited from Subscription

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from CommuteCatamorph[T, S] to any2stringadd[CommuteCatamorph[T, S]]

Inherited by implicit conversion StringFormat from CommuteCatamorph[T, S] to StringFormat[CommuteCatamorph[T, S]]

Inherited by implicit conversion Ensuring from CommuteCatamorph[T, S] to Ensuring[CommuteCatamorph[T, S]]

Inherited by implicit conversion ArrowAssoc from CommuteCatamorph[T, S] to ArrowAssoc[CommuteCatamorph[T, S]]

Ungrouped