Package com. github. michaelbull. result
Types
Functions
Maps this Result to U by applying either the success function if this Result is Ok, or the failure function if this Result is an Err. Both of these functions must return the same type (U).
Returns a Result, E> containing the results of applying the given transform function to each element in the original collection, returning early with the first Err if a transformation fails.
Returns a Result, E> containing the results of applying the given transform function to each element in the original collection, returning early with the first Err if a transformation fails.
Returns a Result, E> containing the results of applying the given transform function to each element and its index in the original collection, returning early with the first Err if a transformation fails.
Returns a Result, E> containing only the non-null results of applying the given transform function to each element and its index in the original collection, returning early with the first Err if a transformation fails.
Applies the given transform function to each element and its index in the original collection and appends only the non-null results to the given destination, returning early with the first Err if a transformation fails.
Applies the given transform function to each element and its index in the original collection and appends the results to the given destination, returning early with the first Err if a transformation fails.
Returns a Result, E> containing only the non-null results of applying the given transform function to each element in the original collection, returning early with the first Err if a transformation fails.
Applies the given transform function to each element in the original collection and appends only the non-null results to the given destination, returning early with the first Err if a transformation fails.
Applies the given transform function to each element of the original collection and appends the results to the given destination, returning early with the first Err if a transformation fails.
Returns a MutableIterator over the possibly contained value. The iterator yields one value if the Result is Ok, otherwise throws NoSuchElementException.
Calls the specified function block and returns its encapsulated result if invocation was successful, catching any Throwable exception that was thrown from the block function execution and encapsulating it as a failure.
Apply a transformation to two Results, if both Results are Ok. If not, the first argument which is an Err will propagate through.
Apply a transformation to three Results, if all Results are Ok. If not, the first argument which is an Err will propagate through.
Apply a transformation to four Results, if all Results are Ok. If not, the first argument which is an Err will propagate through.
Apply a transformation to five Results, if all Results are Ok. If not, the first argument which is an Err will propagate through.