Index
All Classes and Interfaces|All Packages
B
- BooleanResult<E> - Class in no.gorandalum.fluentresult
-
A result object which either is in success state containing a non-
nullboolean value, or in error state containing a non-nullerror value.
C
- CheckedRunnable - Interface in no.gorandalum.fluentresult
- consume(Consumer<? super T>) - Method in class no.gorandalum.fluentresult.Result
-
If in success state, applies the success value to the given consumer, otherwise does nothing.
- consume(Consumer<Boolean>) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in success state, applies the boolean success value to the given consumer, otherwise does nothing.
- consume(Consumer<Optional<T>>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state, applies the optional success value to the given consumer, otherwise does nothing.
- consumeEither(Runnable, Runnable, Consumer<? super E>) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in success state with a success value of
true, runs the given true-runnable. - consumeEither(Runnable, Consumer<? super E>) - Method in class no.gorandalum.fluentresult.VoidResult
-
If in success state, runs the success-runnable.
- consumeEither(Consumer<? super T>, Runnable, Consumer<? super E>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state with a success value, applies the success value to the given value consumer.
- consumeEither(Consumer<? super T>, Consumer<? super E>) - Method in class no.gorandalum.fluentresult.Result
-
If in success state, applies the success value to the given value consumer.
- consumeEither(Consumer<Boolean>, Consumer<? super E>) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in success state, applies the boolean success value to the given value consumer.
- consumeEither(Consumer<Optional<T>>, Consumer<? super E>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state, applies the optional success value to the given success consumer.
- consumeError(Consumer<? super E>) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in error state, applies the error value to the given consumer, otherwise does nothing.
- consumeError(Consumer<? super E>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in error state, applies the error value to the given consumer, otherwise does nothing.
- consumeError(Consumer<? super E>) - Method in class no.gorandalum.fluentresult.Result
-
If in error state, applies the error value to the given consumer, otherwise does nothing.
- consumeError(Consumer<? super E>) - Method in class no.gorandalum.fluentresult.VoidResult
-
If in error state, applies the error value to the given consumer, otherwise does nothing.
- consumeValue(Consumer<T>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state with a success value, applies the success value to the given consumer, otherwise does nothing.
E
- empty() - Static method in class no.gorandalum.fluentresult.OptionalResult
-
Returns an
OptionalResultin success state, which is empty with no success value. - equals(Object) - Method in class no.gorandalum.fluentresult.OptionalResult
- error(E) - Static method in class no.gorandalum.fluentresult.BooleanResult
-
Returns a
BooleanResultin error state containing the given non-nullvalue as error value. - error(E) - Static method in class no.gorandalum.fluentresult.OptionalResult
-
Returns an
OptionalResultin error state containing the given non-nullvalue as error value. - error(E) - Static method in class no.gorandalum.fluentresult.Result
-
Returns a
Resultin error state containing the given non-nullvalue as error value. - error(E) - Static method in class no.gorandalum.fluentresult.VoidResult
-
Returns a
VoidResultin error state containing the given non-nullvalue as error value.
F
- flatConsume(Function<? super T, ? extends VoidResult<? extends E>>) - Method in class no.gorandalum.fluentresult.Result
-
If in success state, applies the success value to the given function.
- flatConsume(Function<Boolean, ? extends VoidResult<? extends E>>) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in success state, applies the boolean success value to the given function.
- flatConsume(Function<Optional<T>, ? extends VoidResult<? extends E>>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state, applies the optional success value to the given function.
- flatConsumeValue(Function<T, ? extends VoidResult<? extends E>>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state, applies the success value to the given function.
- flatMap(Function<? super T, ? extends Result<? extends N, ? extends E>>) - Method in class no.gorandalum.fluentresult.Result
-
If in success state, returns the
Resultfrom applying the given mapping function to the success value, otherwise returns the unalteredResultin error state. - flatMap(Function<Boolean, Result<? extends N, ? extends E>>) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in success state, returns the
Resultfrom applying the given mapping function to the boolean success value, otherwise returns aResultcontaining the error value of thisBooleanResult. - flatMap(Function<Optional<T>, Result<? extends N, ? extends E>>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state, returns the
Resultfrom applying the given mapping function to the optional success value, otherwise returns aResultcontaining the error value of thisOptionalResult. - flatMapToBooleanResult(Function<? super T, BooleanResult<E>>) - Method in class no.gorandalum.fluentresult.Result
-
If in success state, returns the
BooleanResultfrom applying the given mapping function to the success value, otherwise returns aBooleanResultcontaining the error value of thisResult. - flatMapToBooleanResult(Function<Boolean, BooleanResult<? extends E>>) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in success state, returns the
BooleanResultfrom applying the given mapping function to the boolean success value, otherwise returns the unalteredBooleanResultin error state. - flatMapToBooleanResult(Function<Optional<? extends T>, BooleanResult<? extends E>>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state, returns the
BooleanResultfrom applying the given mapping function to the optional success value, otherwise returns aBooleanResultcontaining the error value of thisOptionalResult. - flatMapToOptionalResult(Function<? super T, OptionalResult<N, E>>) - Method in class no.gorandalum.fluentresult.Result
-
If in success state, returns the
OptionalResultfrom applying the given mapping function to the success value, otherwise returns aOptionalResultcontaining the error value of thisResult. - flatMapToOptionalResult(Function<Boolean, OptionalResult<? extends N, ? extends E>>) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in success state, returns the
OptionalResultfrom applying the given mapping function to the boolean success value, otherwise returns aOptionalResultcontaining the error value of thisBooleanResult. - flatMapToOptionalResult(Function<Optional<T>, OptionalResult<? extends N, ? extends E>>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state, returns the
OptionalResultfrom applying the given mapping function to the optional success value, otherwise returns the unalteredOptionalResultin error state. - flatMapToVoidResult(Function<? super T, VoidResult<E>>) - Method in class no.gorandalum.fluentresult.Result
-
If in success state, returns the
VoidResultfrom applying the given mapping function to the success value, otherwise returns aVoidResultcontaining the error value of thisResult. - flatMapToVoidResult(Function<Boolean, VoidResult<? extends E>>) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in success state, returns the
VoidResultfrom applying the given mapping function to the boolean success value, otherwise returns aVoidResultcontaining the error value of thisBooleanResult. - flatMapToVoidResult(Function<Optional<? extends T>, VoidResult<? extends E>>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state, returns the
VoidResultfrom applying the given mapping function to the optional success value, otherwise returns aVoidResultcontaining the error value of thisOptionalResult. - flatMapValueWithBooleanResult(Function<? super T, BooleanResult<? extends E>>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state with a success value, returns an
OptionalResultfrom applying the given mapping function to the success value, otherwise returns the unalteredOptionalResultwhich may be empty or in error state. - flatMapValueWithOptionalResult(Function<? super T, OptionalResult<? extends N, ? extends E>>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state with a success value, returns the
OptionalResultfrom applying the given mapping function to the success value, otherwise returns the unalteredOptionalResultwhich may be empty or in error state. - flatMapValueWithResult(Function<? super T, Result<? extends N, ? extends E>>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state with a success value, returns an
OptionalResultfrom applying the given mapping function to the success value, otherwise returns the unalteredOptionalResultwhich may be empty or in error state. - flatRecover(Function<E, BooleanResult<? extends E>>) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in error state, returns the
BooleanResultfrom applying the given mapping function to the error value, otherwise returns the unalteredBooleanResultin success state. - flatRecover(Function<E, OptionalResult<? extends N, ? extends E>>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in error state, returns the
OptionalResultfrom applying the given mapping function to the error value, otherwise returns the unalteredOptionalResultin success state. - flatRecover(Function<E, Result<? extends N, ? extends E>>) - Method in class no.gorandalum.fluentresult.Result
-
If in error state, returns the
Resultfrom applying the given mapping function to the error value, otherwise returns the unalteredResultin success state. - flatRecover(Function<E, VoidResult<? extends E>>) - Method in class no.gorandalum.fluentresult.VoidResult
-
If in error state, returns the
VoidResultfrom applying the given mapping function to the error value, otherwise returns the unalteredVoidResultin success state. - flatReplace(Supplier<Result<? extends N, ? extends E>>) - Method in class no.gorandalum.fluentresult.VoidResult
-
If in success state, returns the
Resultprovided by the given supplier, otherwise returns aResultcontaining the error value of thisVoidResult. - flatReplaceEmpty(Supplier<OptionalResult<N, E>>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in empty success state, returns the
OptionalResultfrom applying the given supplier, otherwise returns the unalteredOptionalResultin success state with value or error state. - flatReplaceEmptyWithResult(Supplier<Result<N, E>>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in empty success state, returns the
Resultfrom applying the given supplier, otherwise returns aResultwith the existing success value or error value. - flatReplaceToBooleanResult(Supplier<BooleanResult<? extends E>>) - Method in class no.gorandalum.fluentresult.VoidResult
-
If in success state, returns the
BooleanResultprovided by the given supplier, otherwise returns aBooleanResultcontaining the error value of thisVoidResult. - flatReplaceToOptionalResult(Supplier<OptionalResult<? extends N, ? extends E>>) - Method in class no.gorandalum.fluentresult.VoidResult
-
If in success state, returns the
OptionalResultprovided by the given supplier, otherwise returns anOptionalResultcontaining the error value of thisVoidResult. - flatReplaceToVoidResult(Supplier<VoidResult<? extends E>>) - Method in class no.gorandalum.fluentresult.VoidResult
-
If in success state, returns the
VoidResultprovided by the given supplier, otherwise returns the unalteredVoidResultin error state. - flatRunIfSuccess(Supplier<? extends VoidResult<? extends E>>) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in success state, runs the given supplier.
- flatRunIfSuccess(Supplier<? extends VoidResult<? extends E>>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state, runs the given supplier.
- flatRunIfSuccess(Supplier<? extends VoidResult<? extends E>>) - Method in class no.gorandalum.fluentresult.Result
-
If in success state, runs the given supplier.
- flatRunIfSuccess(Supplier<? extends VoidResult<? extends E>>) - Method in class no.gorandalum.fluentresult.VoidResult
-
If in success state, runs the given supplier.
- flatRunIfValue(Supplier<? extends VoidResult<? extends E>>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state with a success value, runs the given supplier.
- fold(Function<? super T, ? extends N>, Function<? super E, ? extends N>) - Method in class no.gorandalum.fluentresult.Result
-
Retrieve a value from this
Resultby folding the states. - fold(Function<? super T, ? extends N>, Supplier<? extends N>, Function<? super E, ? extends N>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
Retrieve a value from this
OptionalResultby folding the states. - fold(Function<Boolean, ? extends N>, Function<? super E, ? extends N>) - Method in class no.gorandalum.fluentresult.BooleanResult
-
Retrieve a value from this
BooleanResultby folding the states. - fold(Function<Optional<T>, ? extends N>, Function<? super E, ? extends N>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
Retrieve a value from this
OptionalResultby folding the states. - fold(Supplier<? extends N>, Function<? super E, ? extends N>) - Method in class no.gorandalum.fluentresult.VoidResult
-
Retrieve a value from this
VoidResultby folding the states. - fold(Supplier<? extends N>, Supplier<? extends N>, Function<? super E, ? extends N>) - Method in class no.gorandalum.fluentresult.BooleanResult
-
Retrieve a value from this
BooleanResultby folding the states.
H
- handle(Callable<Boolean>) - Static method in class no.gorandalum.fluentresult.BooleanResult
-
Handle the given
Callable. - handle(Callable<Boolean>, Function<Exception, E>) - Static method in class no.gorandalum.fluentresult.BooleanResult
-
Handle the given
Callable. - handle(Callable<Optional<T>>) - Static method in class no.gorandalum.fluentresult.OptionalResult
-
Handle the given
Callable. - handle(Callable<Optional<T>>, Function<Exception, E>) - Static method in class no.gorandalum.fluentresult.OptionalResult
-
Handle the given
Callable. - handle(Callable<T>) - Static method in class no.gorandalum.fluentresult.Result
-
Handle the given
Callable. - handle(Callable<T>, Function<Exception, E>) - Static method in class no.gorandalum.fluentresult.Result
-
Handle the given
Callable. - handle(CheckedRunnable) - Static method in class no.gorandalum.fluentresult.VoidResult
-
Handle the given
CheckedRunnable. - handle(CheckedRunnable, Function<Exception, E>) - Static method in class no.gorandalum.fluentresult.VoidResult
-
Handle the given
CheckedRunnable. - hashCode() - Method in class no.gorandalum.fluentresult.OptionalResult
M
- map(Function<? super T, ? extends N>) - Method in class no.gorandalum.fluentresult.Result
-
If in success state, returns a
Resultcontaining the result of applying the given mapping function to the success value, otherwise returns the unalteredResultin error state. - map(Function<Boolean, ? extends N>) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in success state, returns a
Resultcontaining the result of applying the given mapping function to the boolean success value, otherwise returns aResultcontaining the error value of thisBooleanResult. - map(Function<Optional<T>, ? extends N>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state, returns a
Resultcontaining the result of applying the given mapping function to the optional success value of thisOptionalResult, otherwise returns aResultcontaining the error value of thisOptionalResult. - mapError(Function<? super E, ? extends N>) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in error state, returns a
BooleanResultcontaining the result of applying the given mapping function to the error value, otherwise returns the unalteredBooleanResultin success state. - mapError(Function<? super E, ? extends N>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in error state, returns a
OptionalResultcontaining the result of applying the given mapping function to the error value, otherwise returns the unalteredOptionalResultin success state. - mapError(Function<? super E, ? extends N>) - Method in class no.gorandalum.fluentresult.Result
-
If in error state, returns a
Resultcontaining the result of applying the given mapping function to the error value, otherwise returns the unalteredResultin success state. - mapError(Function<? super E, ? extends N>) - Method in class no.gorandalum.fluentresult.VoidResult
-
If in error state, returns a
VoidResultcontaining the result of applying the given mapping function to the error value, otherwise returns the unalteredVoidResultin success state. - mapToBoolean(Function<? super T, Boolean>) - Method in class no.gorandalum.fluentresult.Result
-
If in success state, returns a
BooleanResultcontaining the result of applying the given mapping function to the success value, otherwise returns aBooleanResultcontaining the error value of thisResult. - mapToBoolean(Function<Boolean, Boolean>) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in success state, returns a
BooleanResultcontaining the result of applying the given mapping function to the success value, otherwise returns the unalteredBooleanResultin error state. - mapToBoolean(Function<Optional<T>, Boolean>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state, returns a
BooleanResultcontaining the result of applying the given mapping function to the optional success value, otherwise returns aBooleanResultcontaining the error value of thisOptionalResult. - mapToOptional(Function<? super T, Optional<N>>) - Method in class no.gorandalum.fluentresult.Result
-
If in success state, returns a
OptionalResultcontaining the result of applying the given mapping function to the success value, otherwise returns aOptionalResultcontaining the error value of thisResult. - mapToOptional(Function<Boolean, ? extends Optional<? extends N>>) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in success state, returns a
OptionalResultcontaining the result of applying the given mapping function to the boolean success value, otherwise returns aOptionalResultcontaining the error value of thisBooleanResult. - mapToOptional(Function<Optional<T>, ? extends Optional<? extends N>>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state, returns a
OptionalResultcontaining the result of applying the given mapping function to the optional success value, otherwise returns the unalteredOptionalResultin error state. - mapValue(Function<? super T, ? extends N>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state with a success value, returns an
OptionalResultcontaining the result of applying the given mapping function to the success value, otherwise returns the unalteredOptionalResultwhich may be empty or in error state. - mapValueToOptional(Function<? super T, Optional<N>>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state with a success value, returns an
OptionalResultcontaining the result of applying the given mapping function to the success value, otherwise returns the unalteredOptionalResultwhich may be empty or in error state.
N
- no.gorandalum.fluentresult - package no.gorandalum.fluentresult
O
- OptionalResult<T,
E> - Class in no.gorandalum.fluentresult -
A result object which either is in success state, where it may contain a non-
nullsuccess value or be empty, or it may be in error state containing a non-nullerror value. - orElse(Boolean) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in success state, returns the boolean success value, otherwise returns
other. - orElse(Optional<T>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state, returns the optional success value, otherwise returns
other. - orElse(T) - Method in class no.gorandalum.fluentresult.Result
-
If in success state, returns the success value, otherwise returns
other. - orElseFalse() - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in success state, returns the boolean success value, otherwise returns
false. - orElseGet(Function<? super E, ? extends Optional<T>>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state, returns the optional success value, otherwise returns the value returned from the given function.
- orElseGet(Function<? super E, ? extends T>) - Method in class no.gorandalum.fluentresult.Result
-
If in success state, returns the success value, otherwise returns the value returned from the given function.
- orElseGet(Function<? super E, Boolean>) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in success state, returns the boolean success value, otherwise returns the value returned from the given function.
- orElseThrow(Function<? super E, ? extends X>) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in success state, returns the boolean success value, otherwise throws the exception returned by the given function.
- orElseThrow(Function<? super E, ? extends X>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state, returns the optional success value, otherwise throws the exception returned by the given function.
- orElseThrow(Function<? super E, ? extends X>) - Method in class no.gorandalum.fluentresult.Result
-
If in success state, returns the success value, otherwise throws the exception returned by the given function.
- orElseThrow(Function<? super E, ? extends X>) - Method in class no.gorandalum.fluentresult.VoidResult
-
If in success state, does nothing, otherwise throws the exception returned by the given function.
- orElseTrue() - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in success state, returns the boolean success value, otherwise returns
true.
R
- recover() - Method in class no.gorandalum.fluentresult.VoidResult
-
If in error state, returns a new
VoidResultin success state, otherwise returns the unalteredVoidResultin success state. - recover(Function<E, Boolean>) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in error state, returns a
BooleanResultwith the success value from applying the given mapping function to the error value, otherwise returns the unalteredBooleanResultin success state. - recover(Function<E, Optional<T>>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in error state, returns a
OptionalResultwith the success value from applying the given mapping function to the error value, otherwise returns the unalteredOptionalResultin success state. - recover(Function<E, T>) - Method in class no.gorandalum.fluentresult.Result
-
If in error state, returns a
Resultwith the success value from applying the given mapping function to the error value, otherwise returns the unalteredResultin success state. - replace(Supplier<? extends N>) - Method in class no.gorandalum.fluentresult.VoidResult
-
If in success state, returns a
Resultcontaining the value provided by the given supplier, otherwise returns aResultcontaining the error value of thisVoidResult. - replaceWithBoolean(Supplier<Boolean>) - Method in class no.gorandalum.fluentresult.VoidResult
-
If in success state, returns a
BooleanResultcontaining the boolean value provided by the given supplier, otherwise returns aBooleanResultcontaining the error value of thisVoidResult. - replaceWithOptional(Supplier<Optional<? extends N>>) - Method in class no.gorandalum.fluentresult.VoidResult
-
If in success state, returns a
OptionalResultcontaining the optional value provided by given supplier, otherwise returns aOptionalResultcontaining the error value of thisVoidResult. - Result<T,
E> - Class in no.gorandalum.fluentresult -
A result object which either is in success state containing a non-
nullsuccess value, or in error state containing a non-nullerror value. - run() - Method in interface no.gorandalum.fluentresult.CheckedRunnable
- run(Runnable) - Method in class no.gorandalum.fluentresult.BooleanResult
-
Deprecated.
- run(Runnable) - Method in class no.gorandalum.fluentresult.OptionalResult
-
Deprecated.use
OptionalResult.runAlways(java.lang.Runnable)instead for clarity - run(Runnable) - Method in class no.gorandalum.fluentresult.Result
-
Deprecated.use
Result.runAlways(java.lang.Runnable)instead for clarity - run(Runnable) - Method in class no.gorandalum.fluentresult.VoidResult
-
Deprecated.use
VoidResult.runAlways(java.lang.Runnable)instead for clarity - runAlways(Runnable) - Method in class no.gorandalum.fluentresult.BooleanResult
-
Runs the given runnable, no matter the state.
- runAlways(Runnable) - Method in class no.gorandalum.fluentresult.OptionalResult
-
Runs the given runnable, no matter the state.
- runAlways(Runnable) - Method in class no.gorandalum.fluentresult.Result
-
Runs the given runnable, no matter the state.
- runAlways(Runnable) - Method in class no.gorandalum.fluentresult.VoidResult
-
Runs the given runnable, no matter the state.
- runEither(Runnable, Runnable) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in success state, runs the given success runnable.
- runEither(Runnable, Runnable) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state, runs the given success runnable.
- runEither(Runnable, Runnable) - Method in class no.gorandalum.fluentresult.Result
-
If in success state, runs the given success runnable.
- runEither(Runnable, Runnable) - Method in class no.gorandalum.fluentresult.VoidResult
-
If in success state, runs the given success runnable.
- runEither(Runnable, Runnable, Runnable) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in success state with a success value of
true, runs the given true-runnable. - runEither(Runnable, Runnable, Runnable) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state with a success value, runs the given value runnable.
- runIfEmpty(Runnable) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in empty success state with no success value, runs the given runnable, otherwise does nothing.
- runIfError(Runnable) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in error state, runs the given runnable, otherwise does nothing.
- runIfError(Runnable) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in error state, runs the given runnable, otherwise does nothing.
- runIfError(Runnable) - Method in class no.gorandalum.fluentresult.Result
-
If in error state, runs the given runnable, otherwise does nothing.
- runIfError(Runnable) - Method in class no.gorandalum.fluentresult.VoidResult
-
If in error state, runs the given runnable, otherwise does nothing.
- runIfFalse(Runnable) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in success state with a success value of
false, runs the given runnable, otherwise does nothing. - runIfNoValue(Runnable) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in empty success state or error state, runs the given runnable, otherwise does nothing.
- runIfSuccess(Runnable) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in success state, runs the given runnable, otherwise does nothing.
- runIfSuccess(Runnable) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state, runs the given runnable, otherwise does nothing.
- runIfSuccess(Runnable) - Method in class no.gorandalum.fluentresult.Result
-
If in success state, runs the given runnable, otherwise does nothing.
- runIfSuccess(Runnable) - Method in class no.gorandalum.fluentresult.VoidResult
-
If in success state, runs the given runnable, otherwise does nothing.
- runIfTrue(Runnable) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in success state with a success value of
true, runs the given runnable, otherwise does nothing. - runIfValue(Runnable) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state with a success value, runs the given runnable, otherwise does nothing.
S
- success() - Static method in class no.gorandalum.fluentresult.VoidResult
-
Returns a
VoidResultin success state. - success(boolean) - Static method in class no.gorandalum.fluentresult.BooleanResult
-
Returns a
BooleanResultin success state containing the given non-nullboolean value as success value. - success(Optional<? extends T>) - Static method in class no.gorandalum.fluentresult.OptionalResult
-
Returns an
OptionalResultin success state containing the given non-nullvalue as success value. - success(T) - Static method in class no.gorandalum.fluentresult.OptionalResult
-
Returns an
OptionalResultin success state containing the given non-nullvalue as success value. - success(T) - Static method in class no.gorandalum.fluentresult.Result
-
Returns a
Resultin success state containing the given non-nullvalue as success value. - successFalse() - Static method in class no.gorandalum.fluentresult.BooleanResult
-
Returns a
BooleanResultin success state containingfalseas the boolean success value. - successNullable(T) - Static method in class no.gorandalum.fluentresult.OptionalResult
-
Returns an
OptionalResultin success state either containing the given value as success value, or empty if the given value is null. - successTrue() - Static method in class no.gorandalum.fluentresult.BooleanResult
-
Returns a
BooleanResultin success state containingtrueas the boolean success value.
T
- toOptionalResult() - Method in class no.gorandalum.fluentresult.BooleanResult
-
Transforms this
BooleanResultto anOptionalResult. - toOptionalResult() - Method in class no.gorandalum.fluentresult.Result
-
Transforms this
Resultto anOptionalResult. - toOptionalResult() - Method in class no.gorandalum.fluentresult.VoidResult
-
Transforms this
VoidResultto anOptionalResult. - toResult(Supplier<? extends E>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
Transforms this
OptionalResultto aResult. - toString() - Method in class no.gorandalum.fluentresult.OptionalResult
- toVoidResult() - Method in class no.gorandalum.fluentresult.BooleanResult
-
Transforms this
BooleanResultto aVoidResult. - toVoidResult() - Method in class no.gorandalum.fluentresult.OptionalResult
-
Transforms this
OptionalResultto aVoidResult. - toVoidResult() - Method in class no.gorandalum.fluentresult.Result
-
Transforms this
Resultto aVoidResult.
V
- valueOrElse(T) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state with a success value, returns the success value, otherwise returns
other. - valueOrElseGet(Supplier<? extends T>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state with a success value, returns the success value, otherwise returns the value returned from the given function.
- valueOrElseThrow(Supplier<? extends X>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state with a success value, returns the success value, otherwise throws the exception returned by the given function.
- verify(Function<? super T, ? extends VoidResult<? extends E>>) - Method in class no.gorandalum.fluentresult.Result
-
If in success state, verifies the success value of this
Resultby mapping it to aVoidResult. - verify(Function<Boolean, ? extends VoidResult<? extends E>>) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in success state, verifies the success value of this
BooleanResultby mapping it to aVoidResult. - verify(Function<Optional<T>, ? extends VoidResult<? extends E>>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state, verifies the success value of this
OptionalResultby mapping it to aVoidResult. - verify(Predicate<? super T>, Supplier<? extends E>) - Method in class no.gorandalum.fluentresult.Result
-
If in success state, verifies the success value of this
Resultby testing it with the given predicate. - verify(Predicate<Boolean>, Supplier<? extends E>) - Method in class no.gorandalum.fluentresult.BooleanResult
-
If in success state, verifies the boolean success value of this
BooleanResultby testing it with the given predicate. - verify(Predicate<Optional<T>>, Supplier<? extends E>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state, verifies the optional success value of this
OptionalResultby testing it with the given predicate. - verifyValue(Function<? super T, ? extends VoidResult<? extends E>>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in non-empty success state, verifies the success value of this
OptionalResultby mapping it to aVoidResult. - verifyValue(Predicate<? super T>, Supplier<? extends E>) - Method in class no.gorandalum.fluentresult.OptionalResult
-
If in success state with a success value, verifies the success value of this
OptionalResultby testing it with the given predicate. - VoidResult<E> - Class in no.gorandalum.fluentresult
-
A result object which either is in success state with no value, or in error state containing a non-
nullerror value.
All Classes and Interfaces|All Packages
runAlways(java.lang.Runnable)instead for clarity