Uses of Class
org.storynode.pigeon.result.Result
Packages that use Result
Package
Description
Static classes exposing functions
Types representing the outcome of some operations
Generic wrapper types
-
Uses of Result in org.storynode.pigeon.assertion
Methods in org.storynode.pigeon.assertion with parameters of type ResultModifier and TypeMethodDescriptionstatic <T,E> @NotNull ResultAssert <T, E> Assertions.assertThat(Result<T, E> actual) assertThat.Method parameters in org.storynode.pigeon.assertion with type arguments of type ResultModifier and TypeMethodDescription<U> ResultAssert<T, E> Asserts that the provided function returnsexpectedConstructors in org.storynode.pigeon.assertion with parameters of type Result -
Uses of Result in org.storynode.pigeon.function
Methods in org.storynode.pigeon.function that return ResultModifier and TypeMethodDescriptionRuns the given function and returns aResultdescribing its outcomeNeverThrow.executing(ThrowingSupplier<T> func) Runs the given function and returns aResultwith the function returned value -
Uses of Result in org.storynode.pigeon.protocol
Methods in org.storynode.pigeon.protocol that return ResultModifier and TypeMethodDescriptionSafelyWrapped.tryUnwrap()The non-throwing variant ofWrapped.unwrap(). -
Uses of Result in org.storynode.pigeon.result
Subclasses of Result in org.storynode.pigeon.resultModifier and TypeClassDescriptionclassErr<T,E> Resultvariant for errors.classOk<T,E> Resultvariant for ok values.Methods in org.storynode.pigeon.result that return ResultModifier and TypeMethodDescriptionReturnsresif the result isOk, otherwise returns the Err value ofthis.Returnsresif the result isOk, otherwise returns the Err value ofthis.Returnsresif the result isOk, otherwise returns the Err value ofthis.Likeand(Result)but lazily evaluated.Likeand(Result)but lazily evaluated.Likeand(Result)but lazily evaluated.static <T,E> @NotNull Result <T, E> Result.err(E error) Constructs an error variant of aResultstatic <T,E> @NotNull Result <T, E> Result.error(E error) Constructs an error variant of aResultLikeOption.map(Function)but does not re-wrap the result of the provided mapping function to aResultLikeOption.map(Function)but does not re-wrap the result of the provided mapping function to aResultLikeOption.map(Function)but does not re-wrap the result of the provided mapping function to aResultExecutes the provided function if this contains an errorExecutes the provided function if this contains a valueErr.ifOkOrElse(Consumer<T> whenOk, @NotNull Consumer<E> whenError) ExecuteswhenOkif this contains a value,whenErrorotherwise.Ok.ifOkOrElse(@NotNull Consumer<T> whenOk, Consumer<E> whenError) ExecuteswhenOkif this contains a value,whenErrorotherwise.Result.ifOkOrElse(Consumer<T> whenOk, Consumer<E> whenError) ExecuteswhenOkif this contains a value,whenErrorotherwise.Maps aResult<T, E>toResult<U, E>by applying a function to a contained value, leaving a result that contains an error untouched.Maps aResult<T, E>toResult<U, E>by applying a function to a contained value, leaving a result that contains an error untouched.Maps aResult<T, E>toResult<U, E>by applying a function to a contained value, leaving a result that contains an error untouched.Maps aResult<T, E>toResult<T, U>by applying a function to a contained error, leaving a result that contains a value untouched.Maps aResult<T, E>toResult<T, U>by applying a function to a contained error, leaving a result that contains a value untouched.Maps aResult<T, E>toResult<T, U>by applying a function to a contained error, leaving a result that contains a value untouched.Result.of(ThrowingSupplier<T> fn) Constructs a newResultby using the provided function return value.static <T,E> @NotNull Result <T, E> Result.ok(T inner) Constructs an ok variant of aResult.Methods in org.storynode.pigeon.result with parameters of type ResultModifier and TypeMethodDescriptionReturnsresif the result isOk, otherwise returns the Err value ofthis.Returnsresif the result isOk, otherwise returns the Err value ofthis.Returnsresif the result isOk, otherwise returns the Err value ofthis.Method parameters in org.storynode.pigeon.result with type arguments of type ResultModifier and TypeMethodDescriptionLikeand(Result)but lazily evaluated.Likeand(Result)but lazily evaluated.Likeand(Result)but lazily evaluated.LikeOption.map(Function)but does not re-wrap the result of the provided mapping function to aResultLikeOption.map(Function)but does not re-wrap the result of the provided mapping function to aResultLikeOption.map(Function)but does not re-wrap the result of the provided mapping function to aResult -
Uses of Result in org.storynode.pigeon.wrap
Methods in org.storynode.pigeon.wrap that return ResultModifier and TypeMethodDescription