@Test public void testCreateStore() throws Exception { Reducer reducer = (Action action, Map currentState) -> { System.out.println("reducing " + action); return currentState; }; Store store = Redux.createStore(reducer, Collections.unmodifiableMap(new HashMap()), (map)->{return map;}); store.dispatch(new StringAction("action")); }
public static <S> Store<S> createStore(Reducer reducer, Map state, Function<Map,S> stateBuilder, Middleware<S>... middlewares) { return new Store<>(reducer, state, stateBuilder, middlewares); }
Redux { public static <S> Store<S> createStore(Reducer reducer, Map state, Function<Map,S> stateBuilder, Middleware<S>... middlewares) { return new Store<>(reducer, state, stateBuilder, middlewares); } }
Redux { public static <S> Store<S> createStore(Reducer reducer, Map state, Function<Map,S> stateBuilder, Middleware<S>... middlewares) { return new Store<>(reducer, state, stateBuilder, middlewares); }  }
Redux { public static <S> Store<S> createStore(Reducer reducer, Map state, Function<Map,S> stateBuilder, Middleware<S>... middlewares) { return new Store<>(reducer, state, stateBuilder, middlewares); }  static Store<S> createStore(Reducer reducer, Map state, Function<Map,S> stateBuilder, Middleware<S>... middlewares); static Reducer combineReducers(Map<String, Reducer> reducers); }
Redux { public static <S> Store<S> createStore(Reducer reducer, Map state, Function<Map,S> stateBuilder, Middleware<S>... middlewares) { return new Store<>(reducer, state, stateBuilder, middlewares); }  static Store<S> createStore(Reducer reducer, Map state, Function<Map,S> stateBuilder, Middleware<S>... middlewares); static Reducer combineReducers(Map<String, Reducer> reducers);  }