src/main/java/org/openjfx/core/Channel.java
@Override
    public void postMessage(MessageObject.SubjectEnum subjectEnum, Object data) {
        if (data == null) {
            this.lastMessage.remove(subjectEnum);
            return;
        }
        this.lastMessage.put(subjectEnum, data);

        ArrayList<Consumer> listeners = this.listeners.get(subjectEnum);

        if (listeners != null) {
            listeners.forEach(callback -> {
                try {
                    callback.accept(data);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            });
        }

    }
/**
     * Post message into the channel
     *
     * @param subjectEnum
     * @param data
     */
Post message into the channel
@param subjectEnum
@param data
Post message into the channel @param subjectEnum @param data
@Override
    public void postMessage(MessageObject.SubjectEnum subjectEnum, Object data) {
        if (data == null) {
            this.lastMessage.remove(subjectEnum);
            return;
        }
        this.lastMessage.put(subjectEnum, data);
        ArrayList<Consumer> listeners = this.listeners.get(subjectEnum);
        if (listeners != null) {
            listeners.forEach(callback -> {
                try {
                    callback.accept(data);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            });
        }
    }
@ Override public void postMessage ( MessageObject . SubjectEnum subjectEnum , Object data ) { if ( data == null ) { this . lastMessage . remove ( subjectEnum ) ; return ; } this . lastMessage . put ( subjectEnum , data ) ; ArrayList < Consumer > listeners = this . listeners . get ( subjectEnum ) ; if ( listeners != null ) { listeners . forEach ( callback -> { try { callback . accept ( data ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } } ) ; } }
Post message into the channel
 @param subjectEnum
 @param data
Post message into the channel @param subjectEnum @param data