com.jgcomptech.tools.events.EventHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-ultimate-tools Show documentation
Show all versions of java-ultimate-tools Show documentation
A large repository of scripts for use in any Java program.
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);
}