class Val[T] extends AbstractState[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
AbstractState[T], State[T], Observable[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Val
  2. AbstractState
  3. State
  4. Observable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Val(function: () ⇒ T, distinct: Boolean, cache: Boolean)

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 apply(): T
    Definition Classes
    State
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def attach(f: (T) ⇒ Unit): (T) ⇒ Unit
    Definition Classes
    Observable
  7. def attachAndFire(f: (T) ⇒ Unit): (T) ⇒ Unit
    Definition Classes
    State
  8. def changes(listener: ChangeListener[T]): (T) ⇒ Unit
    Definition Classes
    StateObservable
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def detach(f: (T) ⇒ Unit): Unit
    Definition Classes
    Observable
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def fire(value: T): Unit
    Attributes
    protected[reactify]
    Definition Classes
    Observable
  15. def get(cache: Boolean): T
    Definition Classes
    AbstractState
  16. def get: T
    Definition Classes
    AbstractStateState
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  23. def observing: Set[Observable[_]]
    Definition Classes
    AbstractStateState
  24. def replace(function: () ⇒ T): Unit
    Attributes
    protected
    Definition Classes
    AbstractState
  25. def set(value: ⇒ T): Unit
    Attributes
    protected
    Definition Classes
    AbstractState
  26. def setStatic(value: T): Unit

    Convenience method to pre-evaluate the value instead of as an anonymous function.

    Convenience method to pre-evaluate the value instead of as an anonymous function.

    value

    the value to be set

    Attributes
    protected
    Definition Classes
    AbstractState
  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. def value: T
    Definition Classes
    State
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AbstractState[T]

Inherited from State[T]

Inherited from Observable[T]

Inherited from AnyRef

Inherited from Any

Ungrouped