src/main/java/org/intellimate/izou/sdk/events/Event.java
@SuppressWarnings("unused")
    public Event addEventLifeCycleListener(EventLifeCycle eventLifeCycle, Consumer<EventLifeCycle> cycleCallback) {
        lifeCycleListeners.compute(eventLifeCycle, (unused, list) -> {
            if (list == null)
                list = new ArrayList<>();
            list.add(cycleCallback);
            return list;
        });
        return this;
    }
@SuppressWarnings("unused")
    public Event addEventLifeCycleListener(EventLifeCycle eventLifeCycle, Consumer<EventLifeCycle> cycleCallback) {
        lifeCycleListeners.compute(eventLifeCycle, (unused, list) -> {
            if (list == null)
                list = new ArrayList<>();
            list.add(cycleCallback);
            return list;
        });
        return this;
    }
@ SuppressWarnings ( "unused" ) public Event addEventLifeCycleListener ( EventLifeCycle eventLifeCycle , Consumer < EventLifeCycle > cycleCallback ) { lifeCycleListeners . compute ( eventLifeCycle , ( unused , list ) -> { if ( list == null ) list = new ArrayList <> ( ) ; list . add ( cycleCallback ) ; return list ; } ) ; return this ; }
adds the Consumer to the specified EventLifeCycle.
In its current implementation the invocation of the Callback method is parallel, but the notificaton of the listners not.
@param eventLifeCycle the EventLifeCycle to target
@param cycleCallback the callback
adds the Consumer to the specified EventLifeCycle . In its current implementation the invocation of the Callback method is parallel but the notificaton of the listners not .