Class EventListener<X>

  • All Implemented Interfaces:
    java.util.function.Consumer<Event>

    public class EventListener<X>
    extends java.lang.Object
    implements java.util.function.Consumer<Event>
    • Constructor Summary

      Constructors 
      Constructor Description
      EventListener​(EventName name, java.lang.reflect.Type typeOfX, java.util.function.Consumer<X> handler)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(Event event)  
      EventName getEventName()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Consumer

        andThen
    • Constructor Detail

      • EventListener

        public EventListener​(EventName name,
                             java.lang.reflect.Type typeOfX,
                             java.util.function.Consumer<X> handler)
    • Method Detail

      • getEventName

        public EventName getEventName()
      • accept

        public void accept​(Event event)
        Specified by:
        accept in interface java.util.function.Consumer<X>