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

com.jgcomptech.tools.events.EventHandler Maven / Gradle / Ivy

There is a newer version: 1.5.1
Show newest version
package com.jgcomptech.tools.events;

import java.util.EventListener;

/**
 * Handler for events of a specific class / type.
 * @param  the event class this handler can handle
 * @since 1.4.0
 */
@FunctionalInterface
public interface EventHandler extends EventListener {
    /**
     * Invoked when a specific event of the type for which this handler is registered happens.
     * @param event the event which occurred
     */
    void handle(T event);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy