Interface ComponentManager.Handler<SELF,HF extends @NonNull ComponentManager.HandlerFunction<?>>

Type Parameters:
SELF - The self type.
HF - The handler function type.
All Known Implementing Classes:
ButtonManager.Handler, ModalManager.Handler
Enclosing class:
ComponentManager<E extends @NonNull ComponentInteractionEvent,C extends @NonNull ComponentManager.ComponentContext<E>,HF extends @NonNull ComponentManager.HandlerFunction<C>,H extends @NonNull ComponentManager.Handler<H,HF>,HE extends @NonNull ComponentManager.HandlerEntry<H>>

protected static interface ComponentManager.Handler<SELF,HF extends @NonNull ComponentManager.HandlerFunction<?>>
Specification for the handling of an interaction.
Since:
1.0
API Note:
Implementations may add more configuration values beyond the minimum required by this interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    compose(UnaryOperator<HF> transform)
    Composes this handler by transforming its handler function.
    The handler function.
  • Method Details

    • handler

      HF handler()
      The handler function.
      Returns:
      The handler function.
    • compose

      SELF compose(UnaryOperator<HF> transform)
      Composes this handler by transforming its handler function.
      Parameters:
      transform - The function to apply on the handler.
      Returns:
      The Handler obtained by transforming this handler's function.