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 Functionafter
to 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 forof(Function0)
CheckedFunction0.lift
(CheckedFunction0<? extends R> partialFunction) Lifts the givenpartialFunction
into a total function that returns anOption
result.Lifts the givenpartialFunction
into a total function that returns anOption
result.CheckedFunction0.liftTry
(CheckedFunction0<? extends R> partialFunction) Lifts the givenpartialFunction
into a total function that returns anTry
result.Lifts the givenpartialFunction
into a total function that returns anTry
result.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 fromrecover
function 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 forof(Function0)
static <R> Function0
<R> Narrows the givenFunction0<? extends R>
toFunction0<R>
static <R> Function0
<R>