Class/Object

com.outr.props

Val

Related Docs: object Val | package props

Permalink

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

Instance Constructors

  1. new Val(_value: () ⇒ 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. final def ==(arg0: Any): Boolean

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

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

    Permalink
    Definition Classes
    Any
  6. def asState: State[T]

    Permalink
    Definition Classes
    State
  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. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def monitor(f: ⇒ T): T

    Permalink

    Called when assigning the value.

    Called when assigning the value. This method removes any existing monitored Observables, determines the new Observables from the supplied function f, and monitors changes to any of those.

    f

    the function to monitor

    returns

    T

    Attributes
    protected
    Definition Classes
    MonitoringState
  21. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  24. def state: T

    Permalink
    Attributes
    protected
    Definition Classes
    ValState
  25. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  27. def toVar: Var[T]

    Permalink

    Convenience method to wrap this Val into a Var.

  28. def value: T

    Permalink

    Convenience method to get the current value.

  29. final def wait(): Unit

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

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

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

Inherited from MonitoringState[T]

Inherited from State[T]

Inherited from Observable[T]

Inherited from AnyRef

Inherited from Any

Ungrouped