Index
All Classes and Interfaces|All Packages
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
Resultinto 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
Resultinto a different one. - flatMapFailure(Function<? super F, ? extends Result<? extends S, ? extends F2>>) - Method in interface com.leakyabstractions.result.api.Result
-
Transforms this failed
Resultinto a different one. - flatMapSuccess(Function<? super S, ? extends Result<? extends S2, ? extends F>>) - Method in interface com.leakyabstractions.result.api.Result
-
Transforms this successful
Resultinto a different one.
G
- getFailure() - Method in interface com.leakyabstractions.result.api.Result
-
Returns this
Result's failure value as a possibly-emptyOptional. - getSuccess() - Method in interface com.leakyabstractions.result.api.Result
-
Returns this
Result's success value as a possibly-emptyOptional.
H
- hasFailure() - Method in interface com.leakyabstractions.result.api.Result
-
Checks if this
Resultis 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
Resultis 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
Resultinto 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.
- Result Library for Java - Search tag in package com.leakyabstractions.result.api
- Section
- Results in a Nutshell - Search tag in package com.leakyabstractions.result.api
- Section
S
- streamFailure() - Method in interface com.leakyabstractions.result.api.Result
-
Returns this
Result's failure value as a possibly-emptyStream. - streamSuccess() - Method in interface com.leakyabstractions.result.api.Result
-
Returns this
Result's success value as a possibly-emptyStream.
T
- toString() - Method in interface com.leakyabstractions.result.api.Result
-
Returns a string representation of this
Result.
All Classes and Interfaces|All Packages