Interface EventType<T>

Type Parameters:
T - Type of the event fired.
All Known Implementing Classes:
EventTypeImpl

public interface EventType<T>
Marker for statically validating event types on handlers.
Since:
10/6/18.
Author:
natanbc
  • Method Summary

    Modifier and Type
    Method
    Description
    key()
    Key used in the event bus.
    Class of the event payload.
  • Method Details

    • key

      @Nonnull @CheckReturnValue String key()
      Key used in the event bus.
      Returns:
      Key where this event is fired in the bus.
    • payloadClass

      @Nonnull @CheckReturnValue Class<T> payloadClass()
      Class of the event payload.
      Returns:
      Class of the payload fired for this event.