Package | Description |
---|---|
io.vavr |
Beside
API 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 |
Modifier and Type | Method and Description |
---|---|
default <V> CheckedFunction1<T1,V> |
CheckedFunction1.andThen(CheckedFunction1<? super R,? extends V> after)
Returns a composed function that first applies this CheckedFunction1 to the given argument and then applies
CheckedFunction1
after to the result. |
default CheckedFunction1<T2,R> |
CheckedFunction2.apply(T1 t1)
Applies this function partially to one argument.
|
default CheckedFunction1<T3,R> |
CheckedFunction3.apply(T1 t1,
T2 t2)
Applies this function partially to two arguments.
|
default CheckedFunction1<T4,R> |
CheckedFunction4.apply(T1 t1,
T2 t2,
T3 t3)
Applies this function partially to three arguments.
|
default CheckedFunction1<T5,R> |
CheckedFunction5.apply(T1 t1,
T2 t2,
T3 t3,
T4 t4)
Applies this function partially to 4 arguments.
|
default CheckedFunction1<T6,R> |
CheckedFunction6.apply(T1 t1,
T2 t2,
T3 t3,
T4 t4,
T5 t5)
Applies this function partially to 5 arguments.
|
default CheckedFunction1<T7,R> |
CheckedFunction7.apply(T1 t1,
T2 t2,
T3 t3,
T4 t4,
T5 t5,
T6 t6)
Applies this function partially to 6 arguments.
|
default CheckedFunction1<T8,R> |
CheckedFunction8.apply(T1 t1,
T2 t2,
T3 t3,
T4 t4,
T5 t5,
T6 t6,
T7 t7)
Applies this function partially to 7 arguments.
|
static <T1,R> CheckedFunction1<T1,R> |
API.CheckedFunction(CheckedFunction1<T1,R> methodReference)
Alias for
of(CheckedFunction1) |
default <V> CheckedFunction1<V,R> |
CheckedFunction1.compose(CheckedFunction1<? super V,? extends T1> before)
Returns a composed function that first applies the CheckedFunction1
before the
given argument and then applies this CheckedFunction1 to the result. |
static <T1,R> CheckedFunction1<T1,R> |
CheckedFunction1.constant(R value)
Returns a function that always returns the constant
value that you give in parameter.
|
default CheckedFunction1<T1,R> |
CheckedFunction1.curried()
Returns a curried version of this function.
|
static <T> CheckedFunction1<T,T> |
CheckedFunction1.identity()
Returns the identity CheckedFunction1, i.e.
|
default CheckedFunction1<T1,R> |
CheckedFunction1.memoized()
Returns a memoizing version of this function, which computes the return value for given arguments only one time.
|
static <T1,R> CheckedFunction1<T1,R> |
CheckedFunction1.narrow(CheckedFunction1<? super T1,? extends R> f)
Narrows the given
CheckedFunction1<? super T1, ? extends R> to CheckedFunction1<T1, R> |
static <T1,R> CheckedFunction1<T1,R> |
CheckedFunction1.of(CheckedFunction1<T1,R> methodReference)
|
default CheckedFunction1<T1,R> |
CheckedFunction1.reversed()
Returns a reversed version of this function.
|
default CheckedFunction1<Tuple8<T1,T2,T3,T4,T5,T6,T7,T8>,R> |
CheckedFunction8.tupled()
Returns a tupled version of this function.
|
default CheckedFunction1<Tuple5<T1,T2,T3,T4,T5>,R> |
CheckedFunction5.tupled()
Returns a tupled version of this function.
|
default CheckedFunction1<Tuple7<T1,T2,T3,T4,T5,T6,T7>,R> |
CheckedFunction7.tupled()
Returns a tupled version of this function.
|
default CheckedFunction1<Tuple3<T1,T2,T3>,R> |
CheckedFunction3.tupled()
Returns a tupled version of this function.
|
default CheckedFunction1<Tuple1<T1>,R> |
CheckedFunction1.tupled()
Returns a tupled version of this function.
|
default CheckedFunction1<Tuple6<T1,T2,T3,T4,T5,T6>,R> |
CheckedFunction6.tupled()
Returns a tupled version of this function.
|
default CheckedFunction1<Tuple4<T1,T2,T3,T4>,R> |
CheckedFunction4.tupled()
Returns a tupled version of this function.
|
default CheckedFunction1<Tuple0,R> |
CheckedFunction0.tupled()
Returns a tupled version of this function.
|
default CheckedFunction1<Tuple2<T1,T2>,R> |
CheckedFunction2.tupled()
Returns a tupled version of this function.
|
Modifier and Type | Method and Description |
---|---|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,Function1<T7,CheckedFunction1<T8,R>>>>>>>> |
CheckedFunction8.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,CheckedFunction1<T5,R>>>>> |
CheckedFunction5.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,Function1<T6,CheckedFunction1<T7,R>>>>>>> |
CheckedFunction7.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,CheckedFunction1<T3,R>>> |
CheckedFunction3.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,Function1<T4,Function1<T5,CheckedFunction1<T6,R>>>>>> |
CheckedFunction6.curried()
Returns a curried version of this function.
|
default Function1<T1,Function1<T2,Function1<T3,CheckedFunction1<T4,R>>>> |
CheckedFunction4.curried()
Returns a curried version of this function.
|
default Function1<T1,CheckedFunction1<T2,R>> |
CheckedFunction2.curried()
Returns a curried version of this function.
|
Modifier and Type | Method and Description |
---|---|
default <V> CheckedFunction8<T1,T2,T3,T4,T5,T6,T7,T8,V> |
CheckedFunction8.andThen(CheckedFunction1<? super R,? extends V> after)
Returns a composed function that first applies this CheckedFunction8 to the given argument and then applies
CheckedFunction1
after to the result. |
default <V> CheckedFunction5<T1,T2,T3,T4,T5,V> |
CheckedFunction5.andThen(CheckedFunction1<? super R,? extends V> after)
Returns a composed function that first applies this CheckedFunction5 to the given argument and then applies
CheckedFunction1
after to the result. |
default <V> CheckedFunction7<T1,T2,T3,T4,T5,T6,T7,V> |
CheckedFunction7.andThen(CheckedFunction1<? super R,? extends V> after)
Returns a composed function that first applies this CheckedFunction7 to the given argument and then applies
CheckedFunction1
after to the result. |
default <V> CheckedFunction3<T1,T2,T3,V> |
CheckedFunction3.andThen(CheckedFunction1<? super R,? extends V> after)
Returns a composed function that first applies this CheckedFunction3 to the given argument and then applies
CheckedFunction1
after to the result. |
default <V> CheckedFunction1<T1,V> |
CheckedFunction1.andThen(CheckedFunction1<? super R,? extends V> after)
Returns a composed function that first applies this CheckedFunction1 to the given argument and then applies
CheckedFunction1
after to the result. |
default <V> CheckedFunction6<T1,T2,T3,T4,T5,T6,V> |
CheckedFunction6.andThen(CheckedFunction1<? super R,? extends V> after)
Returns a composed function that first applies this CheckedFunction6 to the given argument and then applies
CheckedFunction1
after to the result. |
default <V> CheckedFunction4<T1,T2,T3,T4,V> |
CheckedFunction4.andThen(CheckedFunction1<? super R,? extends V> after)
Returns a composed function that first applies this CheckedFunction4 to the given argument and then applies
CheckedFunction1
after to the result. |
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
CheckedFunction1
after to the result. |
default <V> CheckedFunction2<T1,T2,V> |
CheckedFunction2.andThen(CheckedFunction1<? super R,? extends V> after)
Returns a composed function that first applies this CheckedFunction2 to the given argument and then applies
CheckedFunction1
after to the result. |
static <T1,R> CheckedFunction1<T1,R> |
API.CheckedFunction(CheckedFunction1<T1,R> methodReference)
Alias for
of(CheckedFunction1) |
default <V> CheckedFunction1<V,R> |
CheckedFunction1.compose(CheckedFunction1<? super V,? extends T1> before)
Returns a composed function that first applies the CheckedFunction1
before the
given argument and then applies this CheckedFunction1 to the result. |
static <T1,R> Function1<T1,Option<R>> |
CheckedFunction1.lift(CheckedFunction1<? super T1,? extends R> partialFunction)
Lifts the given
partialFunction into a total function that returns an Option result. |
static <T1,R> Function1<T1,Try<R>> |
CheckedFunction1.liftTry(CheckedFunction1<? super T1,? extends R> partialFunction)
Lifts the given
partialFunction into a total function that returns an Try result. |
static <T1,R> CheckedFunction1<T1,R> |
CheckedFunction1.narrow(CheckedFunction1<? super T1,? extends R> f)
Narrows the given
CheckedFunction1<? super T1, ? extends R> to CheckedFunction1<T1, R> |
static <T1,R> CheckedFunction1<T1,R> |
CheckedFunction1.of(CheckedFunction1<T1,R> methodReference)
|
static <T1,R> Function1<T1,R> |
API.unchecked(CheckedFunction1<T1,R> f)
Alias for
unchecked() |
Modifier and Type | Method and Description |
---|---|
default <U> Future<U> |
Future.flatMapTry(CheckedFunction1<? super T,? extends Future<? extends U>> mapper) |
default <U> Future<U> |
Future.mapTry(CheckedFunction1<? super T,? extends U> mapper) |
Modifier and Type | Method and Description |
---|---|
default Try<T> |
Try.filterTry(CheckedPredicate<? super T> predicate,
CheckedFunction1<? super T,? extends Throwable> errorProvider)
Returns
this if this is a Failure or this is a Success and the value satisfies the predicate. |
default <U> Try<U> |
Try.flatMapTry(CheckedFunction1<? super T,? extends Try<? extends U>> mapper)
FlatMaps the value of a Success or returns a Failure.
|
default <U> Try<U> |
Try.mapTry(CheckedFunction1<? super T,? extends U> mapper)
Runs the given checked function if this is a
Try.Success ,
passing the result of the current expression to it. |
<R> Try<R> |
Try.WithResources1.of(CheckedFunction1<? super T1,? extends R> f)
Wraps the result of a computation that may fail in a
Try . |
Copyright © 2021. All Rights Reserved.