asOptional: Returns an Optional.of(value) for a succeed outcome, otherwise an empty Optional.
asCompletes: Returns a succeeded basic completes for a success outcome, otherwise a failed Completes.
filter: In case of a valid succeeded, if the filter function returns true, returns the same Outcome. Otherwise it returns a failed Outcome with a NoSuchElementException
alongWith: Composes two succeed outcomes in a single outcome with a tuple. In case of a failed outcome, returns the first failed outcome.
Implements the following methods:
asOptional
: Returns anOptional.of(value)
for a succeed outcome, otherwise an empty Optional.asCompletes
: Returns a succeeded basic completes for a success outcome, otherwise a failed Completes.filter
: In case of a valid succeeded, if the filter function returns true, returns the same Outcome. Otherwise it returns a failed Outcome with aNoSuchElementException
alongWith
: Composes two succeed outcomes in a single outcome with a tuple. In case of a failed outcome, returns the first failed outcome.