Class EventMethodKey

java.lang.Object
it.rebirthproject.ufoeb.dto.EventMethodKey

public final class EventMethodKey extends Object
A key for events used by the EventBus' maps internally
See Also:
  • Field Details

    • eventClass

      private final Class<?> eventClass
      The class of the event
    • method

      private final Method method
      The callback method to invoke when a new notification for the listener needs to be delivered
  • Constructor Details

    • EventMethodKey

      public EventMethodKey(Class<?> eventClass, Method method)
      The constructor to create a BusEventKey
      Parameters:
      eventClass - The class of the event
      method - The method that listens to the event
  • Method Details

    • getEventClass

      public Class<?> getEventClass()
      Get the class of the event
      Returns:
      The class of the event
    • getMethod

      public Method getMethod()
      Get the method that listens to the event
      Returns:
      The method that listens to the event
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object