Class/Object

reactify

Var

Related Docs: object Var | package reactify

Permalink

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

Instance Constructors

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

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. 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 asVal: Val[T]

    Permalink
  8. def attach(f: (T) ⇒ Unit): (T) ⇒ Unit

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

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

    Permalink
    Definition Classes
    StateObservable
  11. def clear(): Unit

    Permalink
    Definition Classes
    Observable
  12. def clone(): AnyRef

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

    Permalink
    Definition Classes
    Observable
  14. def dispose(): Unit

    Permalink
    Definition Classes
    AbstractStateObservable
  15. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Attributes
    protected[reactify]
    Definition Classes
    Observable
  19. def get(cache: Boolean): T

    Permalink
    Definition Classes
    AbstractState
  20. def get: T

    Permalink
    Definition Classes
    AbstractStateState
  21. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  27. def observing: Set[Observable[_]]

    Permalink
    Definition Classes
    AbstractStateState
  28. def replace(function: () ⇒ T, newFunction: Boolean): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractState
  29. 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
    VarChannelAbstractState
  30. def setStatic(value: T): Unit

    Permalink

    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
  31. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    VarVal → AnyRef → Any
  33. def value: T

    Permalink
    Definition Classes
    State
  34. def value_=(value: ⇒ T): Unit

    Permalink

    Convenience method to set the current value like a variable.

  35. final def wait(): Unit

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

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

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

Inherited from StateChannel[T]

Inherited from Channel[T]

Inherited from Val[T]

Inherited from AbstractState[T]

Inherited from State[T]

Inherited from Observable[T]

Inherited from AnyRef

Inherited from Any

Ungrouped