Package io.vavr
Class API.For1Validation<L,T1>
- java.lang.Object
-
- io.vavr.API.For1Validation<L,T1>
-
- Type Parameters:
L- The left-hand type of allValidationsT1- component type ofValidationnumber 1
- Enclosing class:
- API
public static class API.For1Validation<L,T1> extends java.lang.ObjectFor-comprehension with one Validation.
-
-
Field Summary
Fields Modifier and Type Field Description private Validation<L,T1>ts1
-
Constructor Summary
Constructors Modifier Constructor Description privateFor1Validation(Validation<L,T1> ts1)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Validation<L,T1>yield()A shortcut foryield(Function.identity()).<R> Validation<L,R>yield(@NonNull java.util.function.Function<? super T1,? extends R> f)Yields a result for elements of the cross-product of the underlying Validation.
-
-
-
Field Detail
-
ts1
private final Validation<L,T1> ts1
-
-
Constructor Detail
-
For1Validation
private For1Validation(Validation<L,T1> ts1)
-
-
Method Detail
-
yield
public <R> Validation<L,R> yield(@NonNull java.util.function.Function<? super T1,? extends R> f)
Yields a result for elements of the cross-product of the underlying Validation.- Type Parameters:
R- type of the resultingValidationelements- Parameters:
f- a function that maps an element of the cross-product to a result- Returns:
- an
Validationof mapped results
-
yield
public Validation<L,T1> yield()
A shortcut foryield(Function.identity()).- Returns:
- an
Iteratorof mapped results
-
-