- ok
Returns a successful result wrapping the given value.
- error
Returns a failure result wrapping the given error message.
- getOrThrow
Return the value, if the result denotes success, otherwise throw an exception to
be created by the p
- getMessage
Returns an Optional of the result message, or an empty Optional if none.
- ifOk
Applies the consumer if result is not an error.
- isError
Checks if the result denotes an error.
- flatMap
If this Result has a value, applies the given Result-returning function to the
value. Otherwise, ret
- map
If this Result has a value, returns a Result of applying the given function to
the value. Otherwise,
- of
Returns a Result representing the result of invoking the given supplier. If the
supplier returns a v