Uses of Class
com.guinetik.corefun.Result
Packages that use Result
-
Uses of Result in com.guinetik.corefun
Methods in com.guinetik.corefun that return ResultModifier and TypeMethodDescriptionstatic <S,F> Result<S, F> Result.failure(F error) Creates a failed Result containing the given error.Transforms the success value with a function that returns a Result.Transforms the success value using the provided function.Result.mapFailure(Function<? super F, ? extends E> mapper) Transforms the failure value using the provided function.Executes an operation and returns a Result with string error messages.static <T,F> Result<T, F> Executes an operation and returns a Result with custom error mapping.Try.ofException(Callable<T> action) Executes an operation and returns a Result preserving the exception.Performs an action on the value (success or failure) without altering the Result.Result.peekFailure(Consumer<? super F> action) Performs an action on the failure value if present.Result.peekSuccess(Consumer<? super S> action) Performs an action on the success value if present.Recovers from a failure by applying a function that returns a new Result.Try.run(SafeRunnable action) Executes a runnable and returns a Result indicating success or failure.SafeExecutor.safelyResult(String description, Callable<T> action) Executes an operation and returns a Result instead of throwing.Converts a list of Results into a Result of a list.static <S,F> Result<S, F> Result.success(S value) Creates a successful Result containing the given value.SafeCallable.toResult()Converts this callable to a Result, capturing any exception.SafeCallable.toResultWithMessage()Converts this callable to a Result with a string error message.Applies a function to each element and sequences the results.Result.validate(Function<? super S, Boolean> predicate, Function<? super S, ? extends F> failureProducer) Validates the success value against a predicate.Methods in com.guinetik.corefun that return types with arguments of type ResultModifier and TypeMethodDescriptionLazily wraps an operation, executing only when the result is accessed.Method parameters in com.guinetik.corefun with type arguments of type ResultModifier and TypeMethodDescriptionTransforms the success value with a function that returns a Result.Recovers from a failure by applying a function that returns a new Result.Converts a list of Results into a Result of a list.Applies a function to each element and sequences the results.