fluxfx/src/main/java/eu/lestard/fluxfx/Dispatcher.java
@SuppressWarnings("unchecked")
    <T extends Action> EventStream<T> getActionStream(Class<T> actionType) {
        return Dispatcher.getInstance()
                .getActionStream()
                .filter(action -> action.getClass().equals(actionType))
                .map(action -> (T) action);
    }
@SuppressWarnings("unchecked")
    <T extends Action> EventStream<T> getActionStream(Class<T> actionType) {
        return Dispatcher.getInstance()
                .getActionStream()
                .filter(action -> action.getClass().equals(actionType))
                .map(action -> (T) action);
    }
A filtered event-stream of actions of the given type.

@param actionType the class type of the action.
@param <T> the generic type of the action.
@return an event-stream of all actions of the given type.