Uses of Interface
io.vavr.Function0
Packages that use Function0
Package
Description
Beside
API the io.vavr package contains core types like (Checked)Functions and Tuples.-
Uses of Function0 in io.vavr
Modifier and TypeMethodDescriptiondefault <V> Function0<V> Returns a composed function that first applies this Function0 to the given argument and then applies Functionafterto the result.static <R> Function0<R> Function0.constant(R value) Returns a function that always returns the constant value that you give in parameter.Function0.curried()Returns a curried version of this function.static <R> Function0<R> Alias forFunction0.of(Function0)CheckedFunction0.lift(CheckedFunction0<? extends R> partialFunction) Lifts the givenpartialFunctioninto a total function that returns anOptionresult.Lifts the givenpartialFunctioninto a total function that returns anOptionresult.CheckedFunction0.liftTry(CheckedFunction0<? extends R> partialFunction) Lifts the givenpartialFunctioninto a total function that returns anTryresult.Lifts the givenpartialFunctioninto a total function that returns anTryresult.Function0.memoized()Returns a memoizing version of this function, which computes the return value for given arguments only one time.static <R> Function0<R> Narrows the givenFunction0<? extends R>toFunction0<R>static <R> Function0<R> Return a composed function that first applies this CheckedFunction0 to the given arguments and in case of throwable try to get value fromrecoverfunction with same arguments and throwable information.Function0.reversed()Returns a reversed version of this function.static <R> Function0<R> API.unchecked(CheckedFunction0<R> f) Alias forCheckedFunction0.unchecked()CheckedFunction0.unchecked()Returns an unchecked function that will sneaky throw if an exceptions occurs when applying the function.Modifier and TypeMethodDescriptionstatic <R> Function0<R> Alias forFunction0.of(Function0)static <R> Function0<R> Narrows the givenFunction0<? extends R>toFunction0<R>static <R> Function0<R>