Uses of Interface
io.vavr.CheckedFunction0
-
Packages that use CheckedFunction0 Package Description io.vavr BesideAPI
the io.vavr package contains core types like (Checked)Functions and Tuples.io.vavr.concurrent This package contains basic building blocks for creating fast, asynchronous, non-blocking parallel code.io.vavr.control -
-
Uses of CheckedFunction0 in io.vavr
Methods in io.vavr that return CheckedFunction0 Modifier and Type Method Description default <V> CheckedFunction0<V>
CheckedFunction0. andThen(CheckedFunction1<? super R,? extends V> after)
Returns a composed function that first applies this CheckedFunction0 to the given argument and then applies CheckedFunction1after
to the result.static <R> CheckedFunction0<R>
API. CheckedFunction(CheckedFunction0<R> methodReference)
Alias forof(CheckedFunction0)
static <R> CheckedFunction0<R>
CheckedFunction0. constant(R value)
Returns a function that always returns the constant value that you give in parameter.default CheckedFunction0<R>
CheckedFunction0. curried()
Returns a curried version of this function.default CheckedFunction0<R>
CheckedFunction0. memoized()
Returns a memoizing version of this function, which computes the return value for given arguments only one time.static <R> CheckedFunction0<R>
CheckedFunction0. narrow(CheckedFunction0<? extends R> f)
Narrows the givenCheckedFunction0<? extends R>
toCheckedFunction0<R>
static <R> CheckedFunction0<R>
CheckedFunction0. of(CheckedFunction0<R> methodReference)
default CheckedFunction0<R>
CheckedFunction0. reversed()
Returns a reversed version of this function.Methods in io.vavr with parameters of type CheckedFunction0 Modifier and Type Method Description static <R> CheckedFunction0<R>
API. CheckedFunction(CheckedFunction0<R> methodReference)
Alias forof(CheckedFunction0)
static <T> Future<T>
API. Future(CheckedFunction0<? extends T> computation)
Alias forFuture.of(CheckedFunction0)
static <T> Future<T>
API. Future(java.util.concurrent.Executor executorService, CheckedFunction0<? extends T> computation)
Alias forFuture.of(Executor, CheckedFunction0)
default T
Value. getOrElseTry(CheckedFunction0<? extends T> supplier)
Returns the underlying value if present, otherwise returns the result ofTry.of(supplier).get()
.static <R> Function0<Option<R>>
CheckedFunction0. lift(CheckedFunction0<? extends R> partialFunction)
Lifts the givenpartialFunction
into a total function that returns anOption
result.static <R> Function0<Try<R>>
CheckedFunction0. liftTry(CheckedFunction0<? extends R> partialFunction)
Lifts the givenpartialFunction
into a total function that returns anTry
result.static <R> CheckedFunction0<R>
CheckedFunction0. narrow(CheckedFunction0<? extends R> f)
Narrows the givenCheckedFunction0<? extends R>
toCheckedFunction0<R>
static <R> CheckedFunction0<R>
CheckedFunction0. of(CheckedFunction0<R> methodReference)
static <T> Try<T>
API. Try(CheckedFunction0<? extends T> supplier)
Alias forTry.of(CheckedFunction0)
static <R> Function0<R>
API. unchecked(CheckedFunction0<R> f)
Alias forunchecked()
-
Uses of CheckedFunction0 in io.vavr.concurrent
Methods in io.vavr.concurrent with parameters of type CheckedFunction0 Modifier and Type Method Description static <T> Future<T>
Future. of(CheckedFunction0<? extends T> computation)
Starts an asynchronous computation, backed by theFuture.DEFAULT_EXECUTOR
.static <T> Future<T>
Future. of(java.util.concurrent.Executor executor, CheckedFunction0<? extends T> computation)
Starts an asynchronous computation, backed by the givenExecutor
. -
Uses of CheckedFunction0 in io.vavr.control
Fields in io.vavr.control declared as CheckedFunction0 Modifier and Type Field Description private CheckedFunction0<? extends T1>
Try.WithResources1. t1Supplier
private CheckedFunction0<? extends T1>
Try.WithResources2. t1Supplier
private CheckedFunction0<? extends T1>
Try.WithResources3. t1Supplier
private CheckedFunction0<? extends T1>
Try.WithResources4. t1Supplier
private CheckedFunction0<? extends T1>
Try.WithResources5. t1Supplier
private CheckedFunction0<? extends T1>
Try.WithResources6. t1Supplier
private CheckedFunction0<? extends T1>
Try.WithResources7. t1Supplier
private CheckedFunction0<? extends T1>
Try.WithResources8. t1Supplier
private CheckedFunction0<? extends T2>
Try.WithResources2. t2Supplier
private CheckedFunction0<? extends T2>
Try.WithResources3. t2Supplier
private CheckedFunction0<? extends T2>
Try.WithResources4. t2Supplier
private CheckedFunction0<? extends T2>
Try.WithResources5. t2Supplier
private CheckedFunction0<? extends T2>
Try.WithResources6. t2Supplier
private CheckedFunction0<? extends T2>
Try.WithResources7. t2Supplier
private CheckedFunction0<? extends T2>
Try.WithResources8. t2Supplier
private CheckedFunction0<? extends T3>
Try.WithResources3. t3Supplier
private CheckedFunction0<? extends T3>
Try.WithResources4. t3Supplier
private CheckedFunction0<? extends T3>
Try.WithResources5. t3Supplier
private CheckedFunction0<? extends T3>
Try.WithResources6. t3Supplier
private CheckedFunction0<? extends T3>
Try.WithResources7. t3Supplier
private CheckedFunction0<? extends T3>
Try.WithResources8. t3Supplier
private CheckedFunction0<? extends T4>
Try.WithResources4. t4Supplier
private CheckedFunction0<? extends T4>
Try.WithResources5. t4Supplier
private CheckedFunction0<? extends T4>
Try.WithResources6. t4Supplier
private CheckedFunction0<? extends T4>
Try.WithResources7. t4Supplier
private CheckedFunction0<? extends T4>
Try.WithResources8. t4Supplier
private CheckedFunction0<? extends T5>
Try.WithResources5. t5Supplier
private CheckedFunction0<? extends T5>
Try.WithResources6. t5Supplier
private CheckedFunction0<? extends T5>
Try.WithResources7. t5Supplier
private CheckedFunction0<? extends T5>
Try.WithResources8. t5Supplier
private CheckedFunction0<? extends T6>
Try.WithResources6. t6Supplier
private CheckedFunction0<? extends T6>
Try.WithResources7. t6Supplier
private CheckedFunction0<? extends T6>
Try.WithResources8. t6Supplier
private CheckedFunction0<? extends T7>
Try.WithResources7. t7Supplier
private CheckedFunction0<? extends T7>
Try.WithResources8. t7Supplier
private CheckedFunction0<? extends T8>
Try.WithResources8. t8Supplier
Methods in io.vavr.control with parameters of type CheckedFunction0 Modifier and Type Method Description static <T> Try<T>
Try. of(CheckedFunction0<? extends T> supplier)
Creates a Try of a CheckedFunction0.static <T1 extends java.lang.AutoCloseable>
Try.WithResources1<T1>Try. withResources(CheckedFunction0<? extends T1> t1Supplier)
Creates aTry
-with-resources builder that operates on oneAutoCloseable
resource.static <T1 extends java.lang.AutoCloseable,T2 extends java.lang.AutoCloseable>
Try.WithResources2<T1,T2>Try. withResources(CheckedFunction0<? extends T1> t1Supplier, CheckedFunction0<? extends T2> t2Supplier)
Creates aTry
-with-resources builder that operates on twoAutoCloseable
resources.static <T1 extends java.lang.AutoCloseable,T2 extends java.lang.AutoCloseable,T3 extends java.lang.AutoCloseable>
Try.WithResources3<T1,T2,T3>Try. withResources(CheckedFunction0<? extends T1> t1Supplier, CheckedFunction0<? extends T2> t2Supplier, CheckedFunction0<? extends T3> t3Supplier)
Creates aTry
-with-resources builder that operates on threeAutoCloseable
resources.static <T1 extends java.lang.AutoCloseable,T2 extends java.lang.AutoCloseable,T3 extends java.lang.AutoCloseable,T4 extends java.lang.AutoCloseable>
Try.WithResources4<T1,T2,T3,T4>Try. withResources(CheckedFunction0<? extends T1> t1Supplier, CheckedFunction0<? extends T2> t2Supplier, CheckedFunction0<? extends T3> t3Supplier, CheckedFunction0<? extends T4> t4Supplier)
Creates aTry
-with-resources builder that operates on fourAutoCloseable
resources.static <T1 extends java.lang.AutoCloseable,T2 extends java.lang.AutoCloseable,T3 extends java.lang.AutoCloseable,T4 extends java.lang.AutoCloseable,T5 extends java.lang.AutoCloseable>
Try.WithResources5<T1,T2,T3,T4,T5>Try. withResources(CheckedFunction0<? extends T1> t1Supplier, CheckedFunction0<? extends T2> t2Supplier, CheckedFunction0<? extends T3> t3Supplier, CheckedFunction0<? extends T4> t4Supplier, CheckedFunction0<? extends T5> t5Supplier)
Creates aTry
-with-resources builder that operates on fiveAutoCloseable
resources.static <T1 extends java.lang.AutoCloseable,T2 extends java.lang.AutoCloseable,T3 extends java.lang.AutoCloseable,T4 extends java.lang.AutoCloseable,T5 extends java.lang.AutoCloseable,T6 extends java.lang.AutoCloseable>
Try.WithResources6<T1,T2,T3,T4,T5,T6>Try. withResources(CheckedFunction0<? extends T1> t1Supplier, CheckedFunction0<? extends T2> t2Supplier, CheckedFunction0<? extends T3> t3Supplier, CheckedFunction0<? extends T4> t4Supplier, CheckedFunction0<? extends T5> t5Supplier, CheckedFunction0<? extends T6> t6Supplier)
Creates aTry
-with-resources builder that operates on sixAutoCloseable
resources.static <T1 extends java.lang.AutoCloseable,T2 extends java.lang.AutoCloseable,T3 extends java.lang.AutoCloseable,T4 extends java.lang.AutoCloseable,T5 extends java.lang.AutoCloseable,T6 extends java.lang.AutoCloseable,T7 extends java.lang.AutoCloseable>
Try.WithResources7<T1,T2,T3,T4,T5,T6,T7>Try. withResources(CheckedFunction0<? extends T1> t1Supplier, CheckedFunction0<? extends T2> t2Supplier, CheckedFunction0<? extends T3> t3Supplier, CheckedFunction0<? extends T4> t4Supplier, CheckedFunction0<? extends T5> t5Supplier, CheckedFunction0<? extends T6> t6Supplier, CheckedFunction0<? extends T7> t7Supplier)
Creates aTry
-with-resources builder that operates on sevenAutoCloseable
resources.static <T1 extends java.lang.AutoCloseable,T2 extends java.lang.AutoCloseable,T3 extends java.lang.AutoCloseable,T4 extends java.lang.AutoCloseable,T5 extends java.lang.AutoCloseable,T6 extends java.lang.AutoCloseable,T7 extends java.lang.AutoCloseable,T8 extends java.lang.AutoCloseable>
Try.WithResources8<T1,T2,T3,T4,T5,T6,T7,T8>Try. withResources(CheckedFunction0<? extends T1> t1Supplier, CheckedFunction0<? extends T2> t2Supplier, CheckedFunction0<? extends T3> t3Supplier, CheckedFunction0<? extends T4> t4Supplier, CheckedFunction0<? extends T5> t5Supplier, CheckedFunction0<? extends T6> t6Supplier, CheckedFunction0<? extends T7> t7Supplier, CheckedFunction0<? extends T8> t8Supplier)
Creates aTry
-with-resources builder that operates on eightAutoCloseable
resources.Constructors in io.vavr.control with parameters of type CheckedFunction0 Constructor Description WithResources1(CheckedFunction0<? extends T1> t1Supplier)
WithResources2(CheckedFunction0<? extends T1> t1Supplier, CheckedFunction0<? extends T2> t2Supplier)
WithResources3(CheckedFunction0<? extends T1> t1Supplier, CheckedFunction0<? extends T2> t2Supplier, CheckedFunction0<? extends T3> t3Supplier)
WithResources4(CheckedFunction0<? extends T1> t1Supplier, CheckedFunction0<? extends T2> t2Supplier, CheckedFunction0<? extends T3> t3Supplier, CheckedFunction0<? extends T4> t4Supplier)
WithResources5(CheckedFunction0<? extends T1> t1Supplier, CheckedFunction0<? extends T2> t2Supplier, CheckedFunction0<? extends T3> t3Supplier, CheckedFunction0<? extends T4> t4Supplier, CheckedFunction0<? extends T5> t5Supplier)
WithResources6(CheckedFunction0<? extends T1> t1Supplier, CheckedFunction0<? extends T2> t2Supplier, CheckedFunction0<? extends T3> t3Supplier, CheckedFunction0<? extends T4> t4Supplier, CheckedFunction0<? extends T5> t5Supplier, CheckedFunction0<? extends T6> t6Supplier)
WithResources7(CheckedFunction0<? extends T1> t1Supplier, CheckedFunction0<? extends T2> t2Supplier, CheckedFunction0<? extends T3> t3Supplier, CheckedFunction0<? extends T4> t4Supplier, CheckedFunction0<? extends T5> t5Supplier, CheckedFunction0<? extends T6> t6Supplier, CheckedFunction0<? extends T7> t7Supplier)
WithResources8(CheckedFunction0<? extends T1> t1Supplier, CheckedFunction0<? extends T2> t2Supplier, CheckedFunction0<? extends T3> t3Supplier, CheckedFunction0<? extends T4> t4Supplier, CheckedFunction0<? extends T5> t5Supplier, CheckedFunction0<? extends T6> t6Supplier, CheckedFunction0<? extends T7> t7Supplier, CheckedFunction0<? extends T8> t8Supplier)
-