class Var[T] extends AbstractState[T] with StateChannel[T]

Var, as the name suggests, is very similar to a Scala var. The value is defined during instantiation, but may be modified later. The value may be a static value, or may be a derived value depending on multiple Observables. If Observables make up the value they will be monitored and events fired on this Observable as the value changes.

T

the type of value this channel receives

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

Instance Constructors

  1. new Var(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. def :=(value: ⇒ T): Unit

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

    Fires the value to all attached listeners.

    Fires the value to all attached listeners.

    value

    the value to apply

    Definition Classes
    VarChannelAbstractState
  27. 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

    Definition Classes
    VarAbstractState
  28. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. def value: T
    Definition Classes
    State
  31. def value_=(value: ⇒ T): Unit

    Convenience method to set the current value like a variable.

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

Inherited from StateChannel[T]

Inherited from Channel[T]

Inherited from AbstractState[T]

Inherited from State[T]

Inherited from Observable[T]

Inherited from AnyRef

Inherited from Any

Ungrouped