Packages

final class StateSnapshot[S] extends Write[CallbackTo, S]

Linear Supertypes
Write[CallbackTo, S], ModState[CallbackTo, S], SetState[CallbackTo, S], Base[CallbackTo], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StateSnapshot
  2. Write
  3. ModState
  4. SetState
  5. Base
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new StateSnapshot(value: S, underlyingSetFn: Reusable[SetFn[S]], reusability: Reusability[S])

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. implicit def F: Effect[CallbackTo]
    Attributes
    protected
    Definition Classes
    StateSnapshot → Base
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. final def async(f: (Callback) => CallbackTo[Unit]): AsyncCallback[Unit]
    Attributes
    protected
    Definition Classes
    Base
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def modState(mod: (S) => S, callback: Callback): CallbackTo[Unit]
    Definition Classes
    ModState
  14. final def modState(mod: (S) => S): CallbackTo[Unit]
    Definition Classes
    ModState
  15. final def modStateAsync(mod: (S) => S): AsyncCallback[Unit]
    Definition Classes
    ModState
  16. def modStateOption(mod: (S) => Option[S], callback: Callback): Callback

    callback

    Executed regardless of whether state is changed.

    Definition Classes
    StateSnapshot → ModState
  17. final def modStateOption(mod: (S) => Option[S]): CallbackTo[Unit]
    Definition Classes
    ModState
  18. final def modStateOptionAsync(mod: (S) => Option[S]): AsyncCallback[Unit]
    Definition Classes
    ModState
  19. def narrowOption[T <: S](implicit arg0: ClassTag[T]): Option[StateSnapshot[T]]

    returns

    None if value: S isn't value: T as well.

  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. def setState(newState: S, callback: Callback): CallbackTo[Unit]
    Definition Classes
    SetState
  24. final def setState(newState: S): CallbackTo[Unit]
    Definition Classes
    SetState
  25. final def setStateAsync(newState: S): AsyncCallback[Unit]
    Definition Classes
    SetState
  26. def setStateOption(newState: Option[S], callback: Callback): Callback

    callback

    Executed regardless of whether state is changed.

    Definition Classes
    StateSnapshot → SetState
  27. final def setStateOption(newState: Option[S]): CallbackTo[Unit]
    Definition Classes
    SetState
  28. final def setStateOptionAsync(newState: Option[S]): AsyncCallback[Unit]
    Definition Classes
    SetState
  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. def toModStateFn: ModStateFn[CallbackTo, S]
    Definition Classes
    ModState
  31. def toSetStateFn: SetStateFn[CallbackTo, S]
    Definition Classes
    SetState
  32. def toString(): String
    Definition Classes
    StateSnapshot → AnyRef → Any
  33. val underlyingSetFn: Reusable[SetFn[S]]
  34. def unsafeWiden[T >: S](implicit ct: ClassTag[S]): StateSnapshot[T]

    Unsafe because writes may be dropped.

    Unsafe because writes may be dropped.

    Eg. if you widen a StateSnapshot[Banana] into StateSnapshot[Food], calling setState(banana2) will work but setState(pasta) will be silently ignored.

  35. val value: S
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. def withReuse: InstanceMethodsWithReuse[S]
  40. def xmapState[T](f: (S) => T)(g: (T) => S): StateSnapshot[T]

    THIS WILL VOID REUSABILITY.

    THIS WILL VOID REUSABILITY.

    The resulting StateSnapshot[T] will not be reusable.

  41. def zoomState[T](f: (S) => T)(g: (T) => (S) => S): StateSnapshot[T]

    THIS WILL VOID REUSABILITY.

    THIS WILL VOID REUSABILITY.

    The resulting StateSnapshot[T] will not be reusable.

  42. def zoomStateOption[T](f: (S) => Option[T])(g: (T) => (S) => S): Option[StateSnapshot[T]]

    THIS WILL VOID REUSABILITY.

    THIS WILL VOID REUSABILITY.

    The resulting StateSnapshot[T] will not be reusable.

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Write[CallbackTo, S]

Inherited from ModState[CallbackTo, S]

Inherited from SetState[CallbackTo, S]

Inherited from Base[CallbackTo]

Inherited from AnyRef

Inherited from Any

Ungrouped