Package dev.inmo.micro_utils.fsm.common.managers

Types

DefaultStatesManager
Link copied to clipboard
class DefaultStatesManager<T : State>(repo: DefaultStatesManagerRepo<T>, onContextsConflictResolver: suspend (T, T, T) -> Boolean) : StatesManager<T>
class DefaultStatesManager<T : State>(repo: DefaultStatesManagerRepo<T>, onContextsConflictResolver: suspend (T, T, T) -> Boolean) : StatesManager<T>
class DefaultStatesManager<T : State>(repo: DefaultStatesManagerRepo<T>, onContextsConflictResolver: suspend (T, T, T) -> Boolean) : StatesManager<T>
DefaultStatesManagerRepo
Link copied to clipboard
interface DefaultStatesManagerRepo<T : State>

Implement this repo if you want to use some custom repo for DefaultStatesManager

interface DefaultStatesManagerRepo<T : State>

Implement this repo if you want to use some custom repo for DefaultStatesManager

interface DefaultStatesManagerRepo<T : State>

Implement this repo if you want to use some custom repo for DefaultStatesManager

InMemoryDefaultStatesManagerRepo
Link copied to clipboard
class InMemoryDefaultStatesManagerRepo<T : State>(map: MutableMap<Any, T>) : DefaultStatesManagerRepo<T>

Simple DefaultStatesManagerRepo for DefaultStatesManager which will store data in map and use primitive functionality

class InMemoryDefaultStatesManagerRepo<T : State>(map: MutableMap<Any, T>) : DefaultStatesManagerRepo<T>

Simple DefaultStatesManagerRepo for DefaultStatesManager which will store data in map and use primitive functionality

class InMemoryDefaultStatesManagerRepo<T : State>(map: MutableMap<Any, T>) : DefaultStatesManagerRepo<T>

Simple DefaultStatesManagerRepo for DefaultStatesManager which will store data in map and use primitive functionality