Interface SubscribedListener<K,E,O>

Type Parameters:
K - the key type
E - the event type
O - the order type

public interface SubscribedListener<K,E,O>
An interface to hold the subscribed listener.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Consumer<? super E>
    Gets the Consumer of this listener.
    @NotNull Class<E>
    Gets the event class of this listener.
    key()
    Gets the key of this listener.
    @UnknownNullability O
    Gets the order of this listener.
  • Method Details

    • key

      @NotNull K key()
      Gets the key of this listener.
      Returns:
      the key of this listener
    • eventClass

      @NotNull @NotNull Class<E> eventClass()
      Gets the event class of this listener.
      Returns:
      the event class of this listener
    • consumer

      @NotNull @NotNull Consumer<? super E> consumer()
      Gets the Consumer of this listener.
      Returns:
      the Consumer of this listener
    • order

      @UnknownNullability O order()
      Gets the order of this listener.
      Returns:
      the order of this listener