All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.notifier.dispatchers.DispatchingTask Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show newest version
package com.notifier.dispatchers;

import com.notifier.Event;
import com.notifier.Listener;

import java.util.function.BiConsumer;

class DispatchingTask implements Runnable {

    private final Listener mListener;
    private final Event mEvent;
    private final BiConsumer mListenerCall;

    DispatchingTask(Listener listener, Event event, BiConsumer listenerCall) {
        mListener = listener;
        mEvent = event;
        mListenerCall = listenerCall;
    }

    @Override
    public void run() {
        mListenerCall.accept(mListener, mEvent);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy