Skip navigation links
Result Library API 1.0.0.0
C E F G H I M O R S T 

C

com.leakyabstractions.result.api - package com.leakyabstractions.result.api
A Java library to handle success and failure without exceptions

E

equals(Object) - Method in interface com.leakyabstractions.result.api.Result
Indicates whether some other object is "equal to" this Result.

F

filter(Predicate<? super S>, Function<? super S, ? extends F>) - Method in interface com.leakyabstractions.result.api.Result
Transforms this successful Result into a failed one, based on the given condition.
flatMap(Function<? super S, ? extends Result<? extends S2, ? extends F2>>, Function<? super F, ? extends Result<? extends S2, ? extends F2>>) - Method in interface com.leakyabstractions.result.api.Result
Transforms this Result into a different one.
flatMapFailure(Function<? super F, ? extends Result<? extends S, ? extends F2>>) - Method in interface com.leakyabstractions.result.api.Result
Transforms this failed Result into a different one.
flatMapSuccess(Function<? super S, ? extends Result<? extends S2, ? extends F>>) - Method in interface com.leakyabstractions.result.api.Result
Transforms this successful Result into a different one.

G

getFailure() - Method in interface com.leakyabstractions.result.api.Result
Returns this Result's failure value as a possibly-empty Optional.
getSuccess() - Method in interface com.leakyabstractions.result.api.Result
Returns this Result's success value as a possibly-empty Optional.

H

hasFailure() - Method in interface com.leakyabstractions.result.api.Result
Checks if this Result is failed.
hashCode() - Method in interface com.leakyabstractions.result.api.Result
Returns the hash code of this Result's value.
hasSuccess() - Method in interface com.leakyabstractions.result.api.Result
Checks if this Result is successful.

I

ifFailure(Consumer<? super F>) - Method in interface com.leakyabstractions.result.api.Result
Performs the given action with this Result's failure value.
ifSuccess(Consumer<? super S>) - Method in interface com.leakyabstractions.result.api.Result
Performs the given action with this Result's success value.
ifSuccessOrElse(Consumer<? super S>, Consumer<? super F>) - Method in interface com.leakyabstractions.result.api.Result
Performs either of the given actions with this Result's value.

M

map(Function<? super S, ? extends S2>, Function<? super F, ? extends F2>) - Method in interface com.leakyabstractions.result.api.Result
Transforms this Result's success or failure value.
mapFailure(Function<? super F, ? extends F2>) - Method in interface com.leakyabstractions.result.api.Result
Transforms this Result's failure value.
mapSuccess(Function<? super S, ? extends S2>) - Method in interface com.leakyabstractions.result.api.Result
Transforms this Result's success value.

O

orElse(S) - Method in interface com.leakyabstractions.result.api.Result
Returns this Result's success value, or the alternative one.
orElseMap(Function<? super F, ? extends S>) - Method in interface com.leakyabstractions.result.api.Result
Returns this Result's success value, or maps its failure value.

R

recover(Predicate<? super F>, Function<? super F, ? extends S>) - Method in interface com.leakyabstractions.result.api.Result
Transforms this failed Result into a successful one, based on the given condition.
Result<S,F> - Interface in com.leakyabstractions.result.api
Encapsulates a single non-null value, representing the outcome of an operation that can either succeed or fail.

S

streamFailure() - Method in interface com.leakyabstractions.result.api.Result
Returns this Result's failure value as a possibly-empty Stream.
streamSuccess() - Method in interface com.leakyabstractions.result.api.Result
Returns this Result's success value as a possibly-empty Stream.

T

toString() - Method in interface com.leakyabstractions.result.api.Result
Returns a string representation of this Result.
C E F G H I M O R S T 
Skip navigation links
Result Library API 1.0.0.0