Class/Object

com.outr.reactify

Val

Related Docs: object Val | package reactify

Permalink

class Val[T] extends StateChannel[T]

Val, as the name suggests, is like a Scala val. This represents an immutable value that is set in the first place and then not modified. However, since the value set may be built from Observables, the generated value may change over time as its dependencies are modified. This class is Observable and will only fire changes if the underlying value is derived from one or more Observables.

T

the type of value retained by this State

Linear Supertypes
StateChannel[T], State[T], Channel[T], Observable[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Val
  2. StateChannel
  3. State
  4. Channel
  5. Observable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Val(observables: List[Observable[_]], internal: ⇒ T)

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. macro def :=(value: ⇒ T): Unit

    Permalink

    Convenience method to send a value to set similarly to an assignment operator.

    Convenience method to send a value to set similarly to an assignment operator.

    value

    the value to apply

    Definition Classes
    Channel
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. def apply(): T

    Permalink
    Definition Classes
    State
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def attach(f: (T) ⇒ Unit): (T) ⇒ Unit

    Permalink
    Definition Classes
    Observable
  8. def attachAndFire(f: (T) ⇒ Unit): (T) ⇒ Unit

    Permalink
    Definition Classes
    State
  9. def changes(listener: ChangeListener[T]): (T) ⇒ Unit

    Permalink
    Definition Classes
    StateObservable
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def detach(f: (T) ⇒ Unit): Unit

    Permalink
    Definition Classes
    Observable
  12. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def fire(value: T): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Observable
  16. def get: T

    Permalink
    Definition Classes
    State
  17. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  19. val internalFunction: () ⇒ T

    Permalink
    Attributes
    protected
    Definition Classes
    ValState
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. macro def mod(f: (T) ⇒ T): Unit

    Permalink
    Definition Classes
    StateChannel
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  25. macro def set(value: ⇒ T): Unit

    Permalink

    Fires the value to all attached listeners.

    Fires the value to all attached listeners.

    value

    the value to apply

    Definition Classes
    Channel
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. def update(observables: List[Observable[_]], value: ⇒ T): Unit

    Permalink
    Definition Classes
    StateChannelChannel
  29. def value: T

    Permalink

    Convenience method to get the current value.

  30. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from StateChannel[T]

Inherited from State[T]

Inherited from Channel[T]

Inherited from Observable[T]

Inherited from AnyRef

Inherited from Any

Ungrouped