public class Selectors
extends java.lang.Object
| Constructor and Description |
|---|
Selectors() |
| Modifier and Type | Method and Description |
|---|---|
static io.vavr.collection.Seq<ClientAction> |
getClientActions(AppState state) |
static io.vavr.control.Option<StateNode> |
getClientStateNode(AppState appState) |
static java.lang.Object |
getClientStateObject(AppState appState) |
static io.vavr.control.Option<ClientAction> |
getSelectedAction(AppState state)
If a specific client action is selected (
AppState.getSelectedAction()),
this action is returned. |
static boolean |
isTimeTravelActive(AppState state) |
public static io.vavr.control.Option<StateNode> getClientStateNode(AppState appState)
appState - the app stateStateNodepublic static java.lang.Object getClientStateObject(AppState appState)
appState - the app statepublic static io.vavr.collection.Seq<ClientAction> getClientActions(AppState state)
public static io.vavr.control.Option<ClientAction> getSelectedAction(AppState state)
AppState.getSelectedAction()),
this action is returned.
Otherwise the action at the current time-travel-position is returned.
By default this is the last action.
If no action was dispatched yet this selector returns Option.none().
state - the app statepublic static boolean isTimeTravelActive(AppState state)