Functions
Link copied to clipboard
Returns the encapsulated error if this Event is an Event.Error, otherwise returns null.
Link copied to clipboard
Returns the encapsulated error if this Event is an Event.Error. Otherwise, throws a NoSuchElementException.
Link copied to clipboard
Returns the encapsulated value if this Event is a Event.Value, otherwise returns defaultValue.
Link copied to clipboard
Returns the encapsulated value if this Event is a Event.Value, otherwise returns the result of calling defaultValue function.
Link copied to clipboard
Returns the encapsulated value if this Event is a Event.Value, otherwise returns null.
Link copied to clipboard
Returns the encapsulated value if this Event is a Event.Value. If this is Event.Error, throws the encapsulated error. Otherwise, throws a NoSuchElementException.