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
For-comprehension with one Validation.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionyield()A shortcut foryield(Function.identity()).<R> Validation<L, R> Yields a result for elements of the cross-product of the underlying Validation.
-
Field Details
-
ts1
-
-
Constructor Details
-
For1Validation
-
-
Method Details
-
yield
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
A shortcut foryield(Function.identity()).- Returns:
- an
Iteratorof mapped results
-