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

software.committed.rejux.interfaces.Dispatcher Maven / Gradle / Ivy

The newest version!
package software.committed.rejux.interfaces;

import java.util.function.Consumer;

@FunctionalInterface
public interface Dispatcher extends Consumer {

  /**
   * Dispatch the action.
   *
   * An alias for accept(action).
   *
   * @param action the action
   */
  void dispatch(Object action);

  @Override
  default void accept(Object action) {
    dispatch(action);
  }

}