Class AbstractEventHandle

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractEventHandle​(java.lang.String eventName, EventHandler eventHandler)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getEventCount()
      Get the count of event occurrences for the most recent occurrence(s) of the event for which this handle is registered.
      java.lang.String getEventName()
      Get the name of the event for which this handle is set to listen for
      protected void onEventOccurred()  
      protected void setEventCount​(int eventCount)
      Sets the current known event count for this handle.
      • Methods inherited from class java.lang.Object

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

      • AbstractEventHandle

        protected AbstractEventHandle​(java.lang.String eventName,
                                      EventHandler eventHandler)
    • Method Detail

      • getEventName

        public final java.lang.String getEventName()
        Description copied from interface: EventHandle
        Get the name of the event for which this handle is set to listen for
        Specified by:
        getEventName in interface EventHandle
        Returns:
        The name of the event
      • setEventCount

        protected void setEventCount​(int eventCount)
        Sets the current known event count for this handle.
        Parameters:
        eventCount - The event count
      • getEventCount

        public final int getEventCount()
        Description copied from interface: EventHandle
        Get the count of event occurrences for the most recent occurrence(s) of the event for which this handle is registered.
        Specified by:
        getEventCount in interface EventHandle
        Returns:
        The event count
      • onEventOccurred

        protected final void onEventOccurred()