Uses of Interface
io.vavr.CheckedFunction1
Packages that use CheckedFunction1
Package
Description
Beside
API
the io.vavr package contains core types like (Checked)Functions and Tuples.This package contains basic building blocks for creating fast, asynchronous, non-blocking parallel code.
A property check framework built around Property which integrates well with unit test frameworks like junit.
-
Uses of CheckedFunction1 in io.vavr
Methods in io.vavr that return CheckedFunction1Modifier and TypeMethodDescriptiondefault <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 CheckedFunction1after
to the result.default CheckedFunction1
<T2, R> Applies this function partially to one argument.default CheckedFunction1
<T3, R> Applies this function partially to two arguments.default CheckedFunction1
<T4, R> Applies this function partially to three arguments.default CheckedFunction1
<T5, R> Applies this function partially to 4 arguments.default CheckedFunction1
<T6, R> Applies this function partially to 5 arguments.default CheckedFunction1
<T7, R> Applies this function partially to 6 arguments.default CheckedFunction1
<T8, R> Applies this function partially to 7 arguments.static <T1,
R> CheckedFunction1 <T1, R> API.CheckedFunction
(CheckedFunction1<T1, R> methodReference) Alias forof(CheckedFunction1)
default <V> CheckedFunction1
<V, R> CheckedFunction1.compose
(CheckedFunction1<? super V, ? extends T1> before) Returns a composed function that first applies the CheckedFunction1before
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 givenCheckedFunction1<? super T1, ? extends R>
toCheckedFunction1<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
<Tuple0, R> CheckedFunction0.tupled()
Returns a tupled version of this function.default CheckedFunction1
<Tuple1<T1>, R> CheckedFunction1.tupled()
Returns a tupled version of this function.default CheckedFunction1
<Tuple2<T1, T2>, R> CheckedFunction2.tupled()
Returns a tupled version of this function.CheckedFunction3.tupled()
Returns a tupled version of this function.CheckedFunction4.tupled()
Returns a tupled version of this function.CheckedFunction5.tupled()
Returns a tupled version of this function.CheckedFunction6.tupled()
Returns a tupled version of this function.CheckedFunction7.tupled()
Returns a tupled version of this function.CheckedFunction8.tupled()
Returns a tupled version of this function.Methods in io.vavr that return types with arguments of type CheckedFunction1Modifier and TypeMethodDescriptiondefault Function1
<T1, CheckedFunction1<T2, R>> CheckedFunction2.curried()
Returns a curried version of this function.CheckedFunction3.curried()
Returns a curried version of this function.CheckedFunction4.curried()
Returns a curried version of this function.CheckedFunction5.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, Function1<T4, Function1<T5, Function1<T6, CheckedFunction1<T7, R>>>>>>> CheckedFunction7.curried()
Returns a curried version of this function.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.Methods in io.vavr with parameters of type CheckedFunction1Modifier and TypeMethodDescriptiondefault <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.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 CheckedFunction1after
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 CheckedFunction1after
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 CheckedFunction1after
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 CheckedFunction1after
to the result.CheckedFunction5.andThen
(CheckedFunction1<? super R, ? extends V> after) Returns a composed function that first applies this CheckedFunction5 to the given argument and then applies CheckedFunction1after
to the result.CheckedFunction6.andThen
(CheckedFunction1<? super R, ? extends V> after) Returns a composed function that first applies this CheckedFunction6 to the given argument and then applies CheckedFunction1after
to the result.CheckedFunction7.andThen
(CheckedFunction1<? super R, ? extends V> after) Returns a composed function that first applies this CheckedFunction7 to the given argument and then applies CheckedFunction1after
to the result.CheckedFunction8.andThen
(CheckedFunction1<? super R, ? extends V> after) Returns a composed function that first applies this CheckedFunction8 to the given argument and then applies CheckedFunction1after
to the result.static <T1,
R> CheckedFunction1 <T1, R> API.CheckedFunction
(CheckedFunction1<T1, R> methodReference) Alias forof(CheckedFunction1)
default <V> CheckedFunction1
<V, R> CheckedFunction1.compose
(CheckedFunction1<? super V, ? extends T1> before) Returns a composed function that first applies the CheckedFunction1before
the given argument and then applies this CheckedFunction1 to the result.CheckedFunction1.lift
(CheckedFunction1<? super T1, ? extends R> partialFunction) Lifts the givenpartialFunction
into a total function that returns anOption
result.CheckedFunction1.liftTry
(CheckedFunction1<? super T1, ? extends R> partialFunction) Lifts the givenpartialFunction
into a total function that returns anTry
result.static <T1,
R> CheckedFunction1 <T1, R> CheckedFunction1.narrow
(CheckedFunction1<? super T1, ? extends R> f) Narrows the givenCheckedFunction1<? super T1, ? extends R>
toCheckedFunction1<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 forunchecked()
-
Uses of CheckedFunction1 in io.vavr.concurrent
Methods in io.vavr.concurrent with parameters of type CheckedFunction1Modifier and TypeMethodDescriptiondefault <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) -
Uses of CheckedFunction1 in io.vavr.control
Methods in io.vavr.control with parameters of type CheckedFunction1Modifier and TypeMethodDescriptionTry.filterTry
(CheckedPredicate<? super T> predicate, CheckedFunction1<? super T, ? extends Throwable> errorProvider) Returnsthis
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 aTry.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 aTry
. -
Uses of CheckedFunction1 in io.vavr.test
Fields in io.vavr.test declared as CheckedFunction1Modifier and TypeFieldDescriptionprivate final CheckedFunction1
<T1, Property.Condition> Property.Property1.predicate
Methods in io.vavr.test with parameters of type CheckedFunction1Modifier and TypeMethodDescriptionProperty.Property1.implies
(CheckedFunction1<T1, Boolean> postcondition) Returns an implication which composes this Property as pre-condition and a given post-condition.Property.ForAll1.suchThat
(CheckedFunction1<T1, Boolean> predicate) Returns a checkable property that checks values of the 1 variables of thisForAll
quantor.Constructors in io.vavr.test with parameters of type CheckedFunction1ModifierConstructorDescription(package private)
Property1
(String name, Arbitrary<T1> a1, CheckedFunction1<T1, Property.Condition> predicate)