Uses of Record Class
com.amalgamasimulation.excel.ValueOrError
Packages that use ValueOrError
-
Uses of ValueOrError in com.amalgamasimulation.excel
Methods in com.amalgamasimulation.excel that return ValueOrErrorModifier and TypeMethodDescriptionstatic <R> ValueOrError<R, Exception> Executes the supplied operation and captures either its result or the thrown exception.<T> ValueOrError<T, Exception> ValueOrError.attemptMap(ValueOrError.ThrowingFunction<? super R, ? extends T, ? extends Exception> transform) Transforms the current value with a function that may throw, capturing any thrown exception.static <R,E> ValueOrError <R, E> ValueOrError.failure(E error) Creates a failed result.<T> ValueOrError<T, E> Transforms the current value when present, preserving the existing error otherwise.static <R,E> ValueOrError <R, E> ValueOrError.success(R value) Creates a successful result.<T> ValueOrError<T, E> ValueOrError.thenMap(Function<? super R, ValueOrError<T, E>> fun) Chains another computation that already returns aValueOrError, preserving the existing error otherwise.Methods in com.amalgamasimulation.excel that return types with arguments of type ValueOrErrorModifier and TypeMethodDescriptionstatic <T,R> Function <T, ValueOrError<R, Exception>> Wraps a function so that its execution result is captured as either a value or an exception.Method parameters in com.amalgamasimulation.excel with type arguments of type ValueOrErrorModifier and TypeMethodDescription<T> ValueOrError<T, E> ValueOrError.thenMap(Function<? super R, ValueOrError<T, E>> fun) Chains another computation that already returns aValueOrError, preserving the existing error otherwise.