Package | Description |
---|---|
io.vavr |
Modifier and Type | Method and Description |
---|---|
default <V> Function0<V> |
Function0.andThen(Function<? super R,? extends V> after)
Returns a composed function that first applies this Function0 to the given argument and then applies
Function
after 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.
|
default Function0<R> |
Function0.curried() |
static <R> Function0<R> |
API.Function(Function0<R> methodReference)
Alias for
of(Function0) |
static <R> Function0<Option<R>> |
CheckedFunction0.lift(CheckedFunction0<? extends R> partialFunction)
Lifts the given
partialFunction into a total function that returns an Option result. |
static <R> Function0<Option<R>> |
Function0.lift(Supplier<? extends R> partialFunction)
Lifts the given
partialFunction into a total function that returns an Option result. |
static <R> Function0<Try<R>> |
CheckedFunction0.liftTry(CheckedFunction0<? extends R> partialFunction)
Lifts the given
partialFunction into a total function that returns an Try result. |
static <R> Function0<Try<R>> |
Function0.liftTry(Supplier<? extends R> partialFunction)
Lifts the given
partialFunction into a total function that returns an Try result. |
default Function0<R> |
Function0.memoized() |
static <R> Function0<R> |
Function0.narrow(Supplier<? extends R> f)
Narrows the given
Supplier<? extends R> to Function0<R> |
static <R> Function0<R> |
Function0.of(Function0<R> methodReference)
|
default Function0<R> |
CheckedFunction0.recover(Function<? super Throwable,? extends Supplier<? extends R>> recover)
Return a composed function that first applies this CheckedFunction0 to the given arguments and in case of throwable
try to get value from
recover function with same arguments and throwable information. |
default Function0<R> |
Function0.reversed() |
default Function0<R> |
CheckedFunction0.unchecked()
Returns an unchecked function that will sneaky throw if an exceptions occurs when applying the function.
|
static <R> Function0<R> |
API.unchecked(CheckedFunction0<R> f)
Alias for
CheckedFunction0.unchecked() |
Modifier and Type | Method and Description |
---|---|
static <R> Function0<R> |
API.Function(Function0<R> methodReference)
Alias for
of(Function0) |
static <R> Function0<R> |
Function0.of(Function0<R> methodReference)
|
Copyright © 2017. All Rights Reserved.