Functions
Returns the encapsulated ErrorPayload if this instance represents failure or null
if it is success.
Returns the result of onSuccess for the encapsulated value if this instance represents success or the result of onFailure function for the encapsulated ErrorPayload if it is failure.
Returns the encapsulated value if this instance represents success or the result of onFailure function for the encapsulated ErrorPayload if it is failure.
Returns the encapsulated value if this instance represents success or throws the encapsulated ErrorPayload as Throwable exception if it is failure.
Returns the encapsulated result of the given transform function applied to the encapsulated value if this instance represents success or the original encapsulated ErrorPayload if it is failure.
Performs the given action on the encapsulated ErrorPayload if this instance represents failure. Returns the original HubPayload unchanged.
Performs the given action on the encapsulated value if this instance represents success. Returns the original HubPayload unchanged.
Converts the ErrorPayload to Throwable.