Class

reactify

State

Related Doc: package reactify

Permalink

case class State[T](owner: Reactive[T], index: Long, function: () ⇒ T) extends Reaction[Any] with Product with Serializable

State is an internal class to represent the assigned state of a Val, Var, or Dep

Linear Supertypes
Serializable, Serializable, Product, Equals, Reaction[Any], Ordered[Reaction[Any]], Comparable[Reaction[Any]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. State
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Reaction
  7. Ordered
  8. Comparable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new State(owner: Reactive[T], index: Long, function: () ⇒ 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. def <(that: Reaction[Any]): Boolean

    Permalink
    Definition Classes
    Ordered
  4. def <=(that: Reaction[Any]): Boolean

    Permalink
    Definition Classes
    Ordered
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def >(that: Reaction[Any]): Boolean

    Permalink
    Definition Classes
    Ordered
  7. def >=(that: Reaction[Any]): Boolean

    Permalink
    Definition Classes
    Ordered
  8. def active: Boolean

    Permalink

    True if it is the currently active state

  9. def activeState: State[T]

    Permalink

    The currently active state

  10. def apply(value: Any, previous: Option[Any]): ReactionStatus

    Permalink

    Invoked when a new value is received by the associated Reactive

    Invoked when a new value is received by the associated Reactive

    value

    the new value

    previous

    the previous value, if one was defined

    Definition Classes
    StateReaction
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. def cached: Option[T]

    Permalink

    Currently cached value derived from state function

  13. def clearReferences(): Unit

    Permalink

    Clears all references to other states from this state

  14. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  15. def compare(that: Reaction[Any]): Int

    Permalink
    Definition Classes
    Reaction → Ordered
  16. def compareTo(that: Reaction[Any]): Int

    Permalink
    Definition Classes
    Ordered → Comparable
  17. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. val function: () ⇒ T

    Permalink
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  20. val index: Long

    Permalink
  21. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  23. def nextState: Option[State[T]]

    Permalink

    The next state after this one if this is not active

  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  26. val owner: Reactive[T]

    Permalink
  27. def previousState: Option[State[T]]

    Permalink

    The previous state before this one

  28. def priority: Double

    Permalink

    Priority of this Reaction in contrast to other Reactions attached to the same Reactive.

    Priority of this Reaction in contrast to other Reactions attached to the same Reactive. A higher value represents a higher position in reactions list. See Priority for pre-defined values.

    Definition Classes
    Reaction
  29. def references: List[State[_]]

    Permalink

    All states referenced in the function deriving this state's value

  30. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    State → AnyRef → Any
  32. def update(previous: Option[State[T]] = _previousState): Unit

    Permalink

    Updates the derived value of this state

  33. def value: T

    Permalink

    Current value of this state

  34. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(): Unit

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

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Reaction[Any]

Inherited from Ordered[Reaction[Any]]

Inherited from Comparable[Reaction[Any]]

Inherited from AnyRef

Inherited from Any

Ungrouped