Class EventResult

java.lang.Object
org.omegazero.common.eventbus.EventResult

public class EventResult extends Object
Contains result data of the execution of an Event, returned by EventBus.dispatchEventRes(Event, Object...).
Since:
2.1
  • Method Details

    • getListeners

      public int getListeners()
      Returns the number of event handlers that were executed.
      Returns:
      The number of executed event handlers
    • getReturnValue

      public Object getReturnValue()
      Returns the single return value of the event execution. If the event was configured to collect all return values, this method returns null.
      Returns:
      The single return value
    • getReturnValues

      public List<Object> getReturnValues()
      Returns the list of all collected return values, excluding null. If the event was not configured to collect all return values, this method returns null.
      Returns:
      The list of all return values
    • toString

      public String toString()
      Overrides:
      toString in class Object