final class StateSnapshot[S] extends Write[CallbackTo, S]
- Alphabetic
- By Inheritance
- StateSnapshot
- Write
- ModState
- SetState
- Base
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
implicit
def
F: Effect[CallbackTo]
- Attributes
- protected
- Definition Classes
- StateSnapshot → Base
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
final
def
async(f: (Callback) ⇒ CallbackTo[Unit]): AsyncCallback[Unit]
- Attributes
- protected
- Definition Classes
- Base
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
modState(mod: (S) ⇒ S, callback: Callback): CallbackTo[Unit]
- Definition Classes
- ModState
-
final
def
modState(mod: (S) ⇒ S): CallbackTo[Unit]
- Definition Classes
- ModState
-
final
def
modStateAsync(mod: (S) ⇒ S): AsyncCallback[Unit]
- Definition Classes
- ModState
-
def
modStateOption(mod: (S) ⇒ Option[S], callback: Callback): Callback
- callback
Executed regardless of whether state is changed.
- Definition Classes
- StateSnapshot → ModState
-
final
def
modStateOption(mod: (S) ⇒ Option[S]): CallbackTo[Unit]
- Definition Classes
- ModState
-
final
def
modStateOptionAsync(mod: (S) ⇒ Option[S]): AsyncCallback[Unit]
- Definition Classes
- ModState
-
def
narrowOption[T <: S](implicit arg0: ClassTag[T]): Option[StateSnapshot[T]]
- returns
Noneifvalue: Sisn'tvalue: Tas well.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
setState(newState: S, callback: Callback): CallbackTo[Unit]
- Definition Classes
- SetState
-
final
def
setState(newState: S): CallbackTo[Unit]
- Definition Classes
- SetState
-
final
def
setStateAsync(newState: S): AsyncCallback[Unit]
- Definition Classes
- SetState
-
def
setStateOption(newState: Option[S], callback: Callback): Callback
- callback
Executed regardless of whether state is changed.
- Definition Classes
- StateSnapshot → SetState
-
final
def
setStateOption(newState: Option[S]): CallbackTo[Unit]
- Definition Classes
- SetState
-
final
def
setStateOptionAsync(newState: Option[S]): AsyncCallback[Unit]
- Definition Classes
- SetState
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toModStateFn: ModStateFn[CallbackTo, S]
- Definition Classes
- ModState
-
def
toSetStateFn: SetStateFn[CallbackTo, S]
- Definition Classes
- SetState
-
def
toString(): String
- Definition Classes
- StateSnapshot → AnyRef → Any
- val underlyingSetFn: Reusable[SetFn[S]]
-
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]intoStateSnapshot[Food], callingsetState(banana2)will work butsetState(pasta)will be silently ignored. - val value: S
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def withReuse: InstanceMethodsWithReuse[S]
-
def
withValue(s: S): StateSnapshot[S]
THIS WILL VOID REUSABILITY.
THIS WILL VOID REUSABILITY.
The resulting
StateSnapshot[S]will not be reusable. -
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. -
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. -
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
-
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.