Package org.omegazero.common.eventbus
Class EventResult
java.lang.Object
org.omegazero.common.eventbus.EventResult
Contains result data of the execution of an
Event, returned by EventBus.dispatchEventRes(Event, Object...).- Since:
- 2.1
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of event handlers that were executed.Returns the single return value of the event execution.Returns the list of all collected return values, excludingnull.toString()
-
Method Details
-
getListeners
public int getListeners()Returns the number of event handlers that were executed.- Returns:
- The number of executed event handlers
-
getReturnValue
Returns the single return value of the event execution. If the event was configured to collect all return values, this method returnsnull.- Returns:
- The single return value
-
getReturnValues
Returns the list of all collected return values, excludingnull. If the event was not configured to collect all return values, this method returnsnull.- Returns:
- The list of all return values
-
toString
-