Packages

class Mergeable[Obs, A, T] extends ActionValueFn[Obs, A, T]

ActionValueFn implementation that merges values passed to update into the value stored by the base ActionValueFn using the supplied Semigroup's plus function.

Source
ActionValueFn.scala
Linear Supertypes
ActionValueFn[Obs, A, T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Mergeable
  2. ActionValueFn
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Mergeable(base: ActionValueFn[Obs, A, T])(implicit T: Semigroup[T])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def actionValue(obs: Obs, a: A): T

    Returns the stored value associated with the given obs, a pair.

    Returns the stored value associated with the given obs, a pair.

    Definition Classes
    MergeableActionValueFn
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def fold[U](prepare: (U) ⇒ T, present: (T) ⇒ U): ActionValueFn[Obs, A, U]

    Transforms this ActionValueFn into a new instance that applies the supplied prepare to all incoming values before they're learned, and presents tracked T instances using the present fn before returning them via actionValue.

    Transforms this ActionValueFn into a new instance that applies the supplied prepare to all incoming values before they're learned, and presents tracked T instances using the present fn before returning them via actionValue.

    Definition Classes
    ActionValueFn
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def mergeable(implicit T: Semigroup[T]): ActionValueFn[Obs, A, T]

    Returns an ActionValueFn instance that uses the supplied semigroup T to merge values into this current ActionValueFn.

    Returns an ActionValueFn instance that uses the supplied semigroup T to merge values into this current ActionValueFn.

    T

    Semigroup instance used to merge values.

    Definition Classes
    ActionValueFn
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def seen(obs: Obs): Iterable[A]

    Returns an iterable of all actions available from the supplied observation associated with any tracked value T.

    Returns an iterable of all actions available from the supplied observation associated with any tracked value T.

    Definition Classes
    MergeableActionValueFn
  19. def seenStates: Iterable[Obs]

    Returns an Iterable of all observations associated with some internally tracked value T.

    Returns an Iterable of all observations associated with some internally tracked value T.

    Definition Classes
    MergeableActionValueFn
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toEvaluator[R, S[_]]: ActionValue[Obs, A, R, T, S]

    TODO fill in.

    TODO fill in.

    Definition Classes
    ActionValueFn
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. def update(obs: Obs, action: A, value: T): ActionValueFn[Obs, A, T]

    Absorb a new value for the supplied obs, action pair.

    Absorb a new value for the supplied obs, action pair. The behavior of this function is implementation dependent; some might ignore the value, some might merge it in to an existing set of values, some might completely replace the stored state.

    This implementation replaces uses a Semigroup[T] to merge the supplied value in to whatever value is stored in the underlying m.

    Definition Classes
    MergeableActionValueFn
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from ActionValueFn[Obs, A, T]

Inherited from AnyRef

Inherited from Any

Ungrouped