Packages

class Val[T] extends Reactive[T] with Stateful[T]

Linear Supertypes
Stateful[T], Reactive[T], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Val
  2. Stateful
  3. Reactive
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Val(f: => T)
    Attributes
    protected
  2. new Val()
    Attributes
    protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def &(that: Val[T]): Val[T]

    Group multiple Vals together

  4. def &(that: Stateful[T]): Stateful[T]

    Group multiple Statefuls together

    Group multiple Statefuls together

    Definition Classes
    Stateful
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. var _references: Set[Val[_]]
    Attributes
    protected
  7. def and(that: Val[T]): Val[T]

    Group multiple Vals together

  8. def and(that: Stateful[T]): Stateful[T]

    Group multiple Statefuls together

    Group multiple Statefuls together

    Definition Classes
    Stateful
  9. def apply(): T

    Convenience wrapper around get

    Convenience wrapper around get

    Definition Classes
    Stateful
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def attach(f: (T) => Unit, priority: Double = Priority.Normal): Reaction[T]

    Convenience method to create a Reaction to attach to this Reactive

    Convenience method to create a Reaction to attach to this Reactive

    f

    the function reaction

    priority

    the priority in comparison to other reactions (Defaults to Priority.Normal)

    returns

    created Reaction[T]

    Definition Classes
    Reactive
  12. def attachAndFire(f: (T) => Unit, priority: Double = Priority.Normal): Reaction[T]

    Convenience functionality to attach a Reaction and immediately fire the current state on the Reaction.

    Convenience functionality to attach a Reaction and immediately fire the current state on the Reaction.

    f

    the function reaction

    priority

    the priority in comparison to other reactions (Defaults to Priority.Normal)

    returns

    Reaction[T]

    Definition Classes
    Stateful
  13. def changes(f: (T, T) => Unit, priority: Double = Priority.Normal): Reaction[T]

    Convenience method to create a Reaction to monitor changes to this Reactive

    Convenience method to create a Reaction to monitor changes to this Reactive

    f

    the function reaction to receive changes

    priority

    the priority in comparison to other reactions (Defaults to Priority.Normal)

    returns

    created Reaction[T]

    Definition Classes
    Reactive
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equality(t1: T, t2: T): Boolean
  17. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  18. def fire(value: T, previous: Option[T], reactions: List[Reaction[T]] = this.reactions()): ReactionStatus

    Fires the value to the Reactions

    Fires the value to the Reactions

    Attributes
    protected
    Definition Classes
    Reactive
  19. var function: () => T
    Attributes
    protected
  20. def future(condition: (T) => Boolean = _ => true): Future[T]

    Convenience method to create a Future[T] that will complete upon the next reaction that meets to supplied condition.

    Convenience method to create a Future[T] that will complete upon the next reaction that meets to supplied condition.

    condition

    optional condition that must be true for this to fire (Defaults to accept anything)

    returns

    Future[T]

    Definition Classes
    Reactive
  21. def get: T

    Gets the current value from the current State

    Gets the current value from the current State

    Definition Classes
    ValStateful
  22. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def map[R](f: (T) => R): Val[R]

    Maps this Val to another type.

  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  29. def on(f: => Unit, priority: Double = Priority.Normal): Reaction[T]

    Convenience method to create a Reaction to monitor changes to this Reactive when you don't care about the actual value.

    Convenience method to create a Reaction to monitor changes to this Reactive when you don't care about the actual value.

    f

    the function reaction to invoke in reaction to a value received

    priority

    the priority in comparison to other reactions (Defaults to Priority.Normal)

    returns

    created Reaction[T]

    Definition Classes
    Reactive
  30. def once(f: (T) => Unit, condition: (T) => Boolean = _ => true, priority: Double = Priority.Normal): Reaction[T]

    Convenience method to create a Reaction to monitor a single reaction based on an optional condition.

    Convenience method to create a Reaction to monitor a single reaction based on an optional condition.

    f

    the function reaction

    condition

    optional condition that must be true for this to fire (Defaults to accept anything)

    priority

    the priority in comparison to other reactions (Defaults to Priority.Normal)

    returns

    created Reaction[T]

    Definition Classes
    Reactive
  31. def option: Option[T]
  32. var previous: Option[T]
    Attributes
    protected
  33. lazy val reactions: Reactions[T]

    Reactions currently associated with this Reactive

    Reactions currently associated with this Reactive

    Definition Classes
    Reactive
  34. def references: Set[Val[_]]
  35. def set(value: => T): Unit
    Attributes
    protected
  36. var state: Try[T]
    Attributes
    protected
  37. def static(value: T): Unit
  38. def status: Option[ReactionStatus]

    If the current thread is reacting to a value currently, status represents the status of the reaction.

    If the current thread is reacting to a value currently, status represents the status of the reaction. This can be set to ReactionStatus.Stop in order to stop propagation. This can also be achieved via stopPropagation().

    Definition Classes
    Reactive
  39. def status_=(status: ReactionStatus): Unit
    Definition Classes
    Reactive
  40. def stopPropagation(): Unit

    Shortcut functionality to call status = ReactionStatus.Stop

    Shortcut functionality to call status = ReactionStatus.Stop

    Definition Classes
    Reactive
  41. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  42. def toString(): String
    Definition Classes
    Val → AnyRef → Any
  43. def toTry: Try[T]
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  46. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Stateful[T]

Inherited from Reactive[T]

Inherited from AnyRef

Inherited from Any

Ungrouped