Uses of Class
org.javimmutable.collections.Result
Packages that use Result
-
Uses of Result in org.javimmutable.collections
Subclasses of Result in org.javimmutable.collectionsMethods in org.javimmutable.collections that return ResultModifier and TypeMethodDescriptionResult.apply(Proc1Throws<T, ? super Exception> proc) Does nothing if we are a failure result.Result.Failure.apply(Proc1Throws<T, ? super Exception> proc) Result.Success.apply(Proc1Throws<T, ? super Exception> proc) static <T> Result<T> Attempts to compute a value and returns an appropriateResult.Computation.compute()Execute the computation and return aResultcontaining the final value or an exception that terminated the computation.static <T> Result<T> Creates a failureResultcontaining the exception that was thrown.<U> Result<U> abstract <U> Result<U> Replaces our successful result with a new value computed using the provided function.<U> Result<U> Result.Failure.flatMapFailure(Func1Throws<Exception, Result<T>, Exception> func) Result.flatMapFailure(Func1Throws<Exception, Result<T>, Exception> func) Replaces our failure result with a new value computed using the provided function.Result.Success.flatMapFailure(Func1Throws<Exception, Result<T>, Exception> func) <U> Result<U> Result.Failure.map(Func1Throws<T, U, Exception> func) abstract <U> Result<U> Result.map(Func1Throws<T, U, Exception> func) Replaces our successful result with a new value computed using the provided function.<U> Result<U> Result.Success.map(Func1Throws<T, U, Exception> func) Result.Failure.mapFailure(Func1Throws<Exception, T, Exception> func) Result.mapFailure(Func1Throws<Exception, T, Exception> func) Replaces our failure result with a new value computed using the provided function.Result.Success.mapFailure(Func1Throws<Exception, T, Exception> func) static <T> Result<T> Result.success(T value) Creates a successfulResultcontaining the given value.Method parameters in org.javimmutable.collections with type arguments of type ResultModifier and TypeMethodDescription<U> Result<U> abstract <U> Result<U> Replaces our successful result with a new value computed using the provided function.<U> Result<U> Result.Failure.flatMapFailure(Func1Throws<Exception, Result<T>, Exception> func) Result.flatMapFailure(Func1Throws<Exception, Result<T>, Exception> func) Replaces our failure result with a new value computed using the provided function.Result.Success.flatMapFailure(Func1Throws<Exception, Result<T>, Exception> func)