default <V> Function0<V> |
Function0.andThen(java.util.function.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() |
Returns a curried version of this function.
|
static <R> Function0<R> |
API.Function(Function0<R> methodReference) |
|
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(java.util.function.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(java.util.function.Supplier<? extends R> partialFunction) |
Lifts the given partialFunction into a total function that returns an Try result.
|
default Function0<R> |
Function0.memoized() |
Returns a memoizing version of this function, which computes the return value for given arguments only one time.
|
static <R> Function0<R> |
Function0.narrow(Function0<? extends R> f) |
Narrows the given Function0<? extends R> to Function0<R>
|
static <R> Function0<R> |
Function0.of(Function0<R> methodReference) |
|
default Function0<R> |
CheckedFunction0.recover(java.util.function.Function<? super java.lang.Throwable,? extends java.util.function.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() |
Returns a reversed version of this function.
|
static <R> Function0<R> |
API.unchecked(CheckedFunction0<R> f) |
|
default Function0<R> |
CheckedFunction0.unchecked() |
Returns an unchecked function that will sneaky throw if an exceptions occurs when applying the function.
|