Uses of Interface
io.vavr.CheckedFunction2
Packages that use CheckedFunction2
Package
Description
Beside
API
the io.vavr package contains core types like (Checked)Functions and Tuples.A property check framework built around Property which integrates well with unit test frameworks like junit.
-
Uses of CheckedFunction2 in io.vavr
Methods in io.vavr that return CheckedFunction2Modifier and TypeMethodDescriptiondefault <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 CheckedFunction2
<T2, T3, R> Applies this function partially to one argument.default CheckedFunction2
<T3, T4, R> Applies this function partially to two arguments.default CheckedFunction2
<T4, T5, R> Applies this function partially to three arguments.default CheckedFunction2
<T5, T6, R> Applies this function partially to 4 arguments.default CheckedFunction2
<T6, T7, R> Applies this function partially to 5 arguments.default CheckedFunction2
<T7, T8, R> Applies this function partially to 6 arguments.static <T1,
T2, R>
CheckedFunction2<T1, T2, R> API.CheckedFunction
(CheckedFunction2<T1, T2, R> methodReference) Alias forof(CheckedFunction2)
static <T1,
T2, R>
CheckedFunction2<T1, T2, R> CheckedFunction2.constant
(R value) Returns a function that always returns the constant value that you give in parameter.default CheckedFunction2
<T1, T2, R> CheckedFunction2.memoized()
Returns a memoizing version of this function, which computes the return value for given arguments only one time.static <T1,
T2, R>
CheckedFunction2<T1, T2, R> CheckedFunction2.narrow
(CheckedFunction2<? super T1, ? super T2, ? extends R> f) Narrows the givenCheckedFunction2<? super T1, ? super T2, ? extends R>
toCheckedFunction2<T1, T2, R>
static <T1,
T2, R>
CheckedFunction2<T1, T2, R> CheckedFunction2.of
(CheckedFunction2<T1, T2, R> methodReference) default CheckedFunction2
<T2, T1, R> CheckedFunction2.reversed()
Returns a reversed version of this function.Methods in io.vavr with parameters of type CheckedFunction2Modifier and TypeMethodDescriptionstatic <T1,
T2, R>
CheckedFunction2<T1, T2, R> API.CheckedFunction
(CheckedFunction2<T1, T2, R> methodReference) Alias forof(CheckedFunction2)
CheckedFunction2.lift
(CheckedFunction2<? super T1, ? super T2, ? extends R> partialFunction) Lifts the givenpartialFunction
into a total function that returns anOption
result.CheckedFunction2.liftTry
(CheckedFunction2<? super T1, ? super T2, ? extends R> partialFunction) Lifts the givenpartialFunction
into a total function that returns anTry
result.static <T1,
T2, R>
CheckedFunction2<T1, T2, R> CheckedFunction2.narrow
(CheckedFunction2<? super T1, ? super T2, ? extends R> f) Narrows the givenCheckedFunction2<? super T1, ? super T2, ? extends R>
toCheckedFunction2<T1, T2, R>
static <T1,
T2, R>
CheckedFunction2<T1, T2, R> CheckedFunction2.of
(CheckedFunction2<T1, T2, R> methodReference) static <T1,
T2, R>
Function2<T1, T2, R> API.unchecked
(CheckedFunction2<T1, T2, R> f) Alias forunchecked()
-
Uses of CheckedFunction2 in io.vavr.control
Methods in io.vavr.control with parameters of type CheckedFunction2Modifier and TypeMethodDescription<R> Try
<R> Try.WithResources2.of
(CheckedFunction2<? super T1, ? super T2, ? extends R> f) Wraps the result of a computation that may fail in aTry
. -
Uses of CheckedFunction2 in io.vavr.test
Fields in io.vavr.test declared as CheckedFunction2Modifier and TypeFieldDescriptionprivate final CheckedFunction2
<T1, T2, Property.Condition> Property.Property2.predicate
Methods in io.vavr.test with parameters of type CheckedFunction2Modifier and TypeMethodDescriptionProperty.Property2.implies
(CheckedFunction2<T1, T2, Boolean> postcondition) Returns an implication which composes this Property as pre-condition and a given post-condition.Property.ForAll2.suchThat
(CheckedFunction2<T1, T2, Boolean> predicate) Returns a checkable property that checks values of the 2 variables of thisForAll
quantor.Constructors in io.vavr.test with parameters of type CheckedFunction2ModifierConstructorDescription(package private)
Property2
(String name, Arbitrary<T1> a1, Arbitrary<T2> a2, CheckedFunction2<T1, T2, Property.Condition> predicate)