Package 

Class PersistentEventDispatcher

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract ActionListener<T, E> getListener() The listener bound to this dispatcher.
      Unit set(T trigger, Function1<E, Unit> job) Adds a job to be performed whenever an event triggers the dispatcher through the listener.
      • Methods inherited from class java.lang.Object

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

      • PersistentEventDispatcher

        PersistentEventDispatcher()
    • Method Detail

      • set

         Unit set(T trigger, Function1<E, Unit> job)

        Adds a job to be performed whenever an event triggers the dispatcher through the listener.

        Parameters:
        trigger - the type of the job that needs to occur.
        job - the job that will happen whenever the given job occurs.