StoreStateCallback
An implementation of StateCallback that stores values in the key specified in storeValueIn.
Parameters
T
The context type (see NodeParameterKey for details)
R
The type of the state
Functions
Link copied to clipboard
Create a store map and evaluate this state callback. The map is returned.
Link copied to clipboard
Link copied to clipboard
fun <T, R> StateCallback<T, R, *>?.withStoreMap(value: R, currIndex: Int, handler: (Map<NodeParameterKey<T, *>, Any?>) -> ExpectationResult<T>): ExpectationResult<T>
Create a store map (using createStoreMap) and call the provided handler, returning an ExpectationResult.