Package dev.inmo.micro_utils.fsm.repos.common

Types

KeyValueBasedDefaultStatesManagerRepo
Link copied to clipboard
class KeyValueBasedDefaultStatesManagerRepo(keyValueRepo: KeyValueRepo<Any, State>) : DefaultStatesManagerRepo
class KeyValueBasedDefaultStatesManagerRepo(keyValueRepo: KeyValueRepo<Any, State>) : DefaultStatesManagerRepo
class KeyValueBasedDefaultStatesManagerRepo(keyValueRepo: KeyValueRepo<Any, State>) : DefaultStatesManagerRepo

Functions

createStatesManager
Link copied to clipboard
inline fun <TargetContextType, TargetStateType> createStatesManager(targetKeyValueRepo: KeyValueRepo<TargetContextType, TargetStateType>, noinline contextToOutTransformer: suspend Any.() -> TargetContextType, noinline stateToOutTransformer: suspend State.() -> TargetStateType, noinline outToContextTransformer: suspend TargetContextType.() -> Any, noinline outToStateTransformer: suspend TargetStateType.() -> State): KeyValueBasedStatesManager
inline fun <TargetContextType, TargetStateType> createStatesManager(targetKeyValueRepo: KeyValueRepo<TargetContextType, TargetStateType>, noinline contextToOutTransformer: suspend Any.() -> TargetContextType, noinline stateToOutTransformer: suspend State.() -> TargetStateType, noinline outToContextTransformer: suspend TargetContextType.() -> Any, noinline outToStateTransformer: suspend TargetStateType.() -> State): KeyValueBasedStatesManager
inline fun <TargetContextType, TargetStateType> createStatesManager(targetKeyValueRepo: KeyValueRepo<TargetContextType, TargetStateType>, noinline contextToOutTransformer: suspend Any.() -> TargetContextType, noinline stateToOutTransformer: suspend State.() -> TargetStateType, noinline outToContextTransformer: suspend TargetContextType.() -> Any, noinline outToStateTransformer: suspend TargetStateType.() -> State): KeyValueBasedStatesManager