getResultOrDefault

public final T getResultOrDefault(T default)

Gets the result of the event or a default value if the result is null.

Return

The result of the event or the default value.

Parameters

default

The default value to return if the result is null.