Uses of Interface
org.smallibs.util.FunctionWithError
Packages that use FunctionWithError
-
Uses of FunctionWithError in org.smallibs.concurrent.promise
Methods in org.smallibs.concurrent.promise with parameters of type FunctionWithErrorModifier and TypeMethodDescriptiondefault <R> Promise<R> Promise.and(FunctionWithError<? super T, R> function) Method used when a new computation must be done when the current one succeed.<R> Promise<R> Promise.biMap(FunctionWithError<? super T, ? extends R> onSuccess, FunctionWithError<? super Throwable, ? extends R> onError) Method used to map a function on success and another one on error.<R> Promise<R> Promise.map(FunctionWithError<? super T, ? extends R> function) Method used to map a function. -
Uses of FunctionWithError in org.smallibs.util
Methods in org.smallibs.util that return FunctionWithErrorModifier and TypeMethodDescriptionstatic <T,R> FunctionWithError <T, R> FunctionsHelper.fromFunction(java.util.function.Function<T, R> function) Methods in org.smallibs.util with parameters of type FunctionWithErrorModifier and TypeMethodDescriptionstatic <T,R> java.util.function.Function <T, Try<R>> FunctionsHelper.toFunction(FunctionWithError<T, R> function)