Class ListenerRegistry<T>


  • public class ListenerRegistry<T>
    extends java.lang.Object
    Author:
    Lucian Chirita (lucianc@users.sourceforge.net)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <E extends T>
      void
      triggerEvent​(java.lang.Class<E> eventType, java.util.function.Supplier<E> eventSupplier)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ListenerRegistry

        public ListenerRegistry​(java.util.List<RegisteredListener<T>> listeners)
    • Method Detail

      • triggerEvent

        public <E extends T> void triggerEvent​(java.lang.Class<E> eventType,
                                               java.util.function.Supplier<E> eventSupplier)