Uses of Interface
io.vavr.Function4
Packages that use Function4
Package
Description
Beside
API the io.vavr package contains core types like (Checked)Functions and Tuples.-
Uses of Function4 in io.vavr
Modifier and TypeMethodDescriptionReturns a composed function that first applies this Function4 to the given argument and then applies Functionafterto the result.Applies this function partially to one argument.Applies this function partially to two arguments.Applies this function partially to three arguments.Applies this function partially to 4 arguments.static <T1,T2, T3, T4, R>
Function4<T1, T2, T3, T4, R> Function4.constant(R value) Returns a function that always returns the constant value that you give in parameter.static <T1,T2, T3, T4, R>
Function4<T1, T2, T3, T4, R> Alias forFunction4.of(Function4)CheckedFunction4.lift(CheckedFunction4<? super T1, ? super T2, ? super T3, ? super T4, ? extends R> partialFunction) Lifts the givenpartialFunctioninto a total function that returns anOptionresult.Function4.lift(Function4<? super T1, ? super T2, ? super T3, ? super T4, ? extends R> partialFunction) Lifts the givenpartialFunctioninto a total function that returns anOptionresult.CheckedFunction4.liftTry(CheckedFunction4<? super T1, ? super T2, ? super T3, ? super T4, ? extends R> partialFunction) Lifts the givenpartialFunctioninto a total function that returns anTryresult.Function4.liftTry(Function4<? super T1, ? super T2, ? super T3, ? super T4, ? extends R> partialFunction) Lifts the givenpartialFunctioninto a total function that returns anTryresult.Function4.memoized()Returns a memoizing version of this function, which computes the return value for given arguments only one time.static <T1,T2, T3, T4, R>
Function4<T1, T2, T3, T4, R> Narrows the givenFunction4<? super T1, ? super T2, ? super T3, ? super T4, ? extends R>toFunction4<T1, T2, T3, T4, R>static <T1,T2, T3, T4, R>
Function4<T1, T2, T3, T4, R> CheckedFunction4.recover(Function<? super Throwable, ? extends Function4<? super T1, ? super T2, ? super T3, ? super T4, ? extends R>> recover) Return a composed function that first applies this CheckedFunction4 to the given arguments and in case of throwable try to get value fromrecoverfunction with same arguments and throwable information.Function4.reversed()Returns a reversed version of this function.static <T1,T2, T3, T4, R>
Function4<T1, T2, T3, T4, R> API.unchecked(CheckedFunction4<T1, T2, T3, T4, R> f) Alias forCheckedFunction4.unchecked()CheckedFunction4.unchecked()Returns an unchecked function that will sneaky throw if an exceptions occurs when applying the function.Modifier and TypeMethodDescription<U> UTransforms this tuple to an object of type U.static <T,T1, T2, T3, T4, R>
API.Match.Case<T, R> API.Case(API.Match.Pattern4<T, T1, T2, T3, T4> pattern, Function4<? super T1, ? super T2, ? super T3, ? super T4, ? extends R> f) static <T1,T2, T3, T4, R>
Function4<T1, T2, T3, T4, R> Alias forFunction4.of(Function4)Function4.lift(Function4<? super T1, ? super T2, ? super T3, ? super T4, ? extends R> partialFunction) Lifts the givenpartialFunctioninto a total function that returns anOptionresult.Function4.liftTry(Function4<? super T1, ? super T2, ? super T3, ? super T4, ? extends R> partialFunction) Lifts the givenpartialFunctioninto a total function that returns anTryresult.<U1,U2, U3, U4>
Tuple4<U1, U2, U3, U4> Maps the components of this tuple using a mapper function.static <T1,T2, T3, T4, R>
Function4<T1, T2, T3, T4, R> Narrows the givenFunction4<? super T1, ? super T2, ? super T3, ? super T4, ? extends R>toFunction4<T1, T2, T3, T4, R>static <T1,T2, T3, T4, R>
Function4<T1, T2, T3, T4, R> <R> Iterator<R> Yields a result for elements of the cross product of the underlying Iterables.<R> Future<R> Yields a result for elements of the cross product of the underlying Futures.<R> List<R> Yields a result for elements of the cross product of the underlying Lists.<R> Option<R> Yields a result for elements of the cross product of the underlying Options.<R> Try<R> Yields a result for elements of the cross product of the underlying Trys.Modifier and TypeMethodDescriptionCheckedFunction4.recover(Function<? super Throwable, ? extends Function4<? super T1, ? super T2, ? super T3, ? super T4, ? extends R>> recover) Return a composed function that first applies this CheckedFunction4 to the given arguments and in case of throwable try to get value fromrecoverfunction with same arguments and throwable information. -
Uses of Function4 in io.vavr.control
Methods in io.vavr.control with parameters of type Function4