Class Validation.Builder8<E,T1,T2,T3,T4,T5,T6,T7,T8>
java.lang.Object
io.vavr.control.Validation.Builder8<E,T1,T2,T3,T4,T5,T6,T7,T8>
- Type Parameters:
E- type of errorT1- type of first valid valueT2- type of second valid valueT3- type of third valid valueT4- type of fourth valid valueT5- type of fifth valid valueT6- type of sixth valid valueT7- type of seventh valid valueT8- type of eighth valid value
- Enclosing interface:
Validation<E,T>
A builder that holds eight Validation instances, used for combining validations
and applying functions that take eight arguments.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Validation<E, T1> private Validation<E, T2> private Validation<E, T3> private Validation<E, T4> private Validation<E, T5> private Validation<E, T6> private Validation<E, T7> private Validation<E, T8> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBuilder8(Validation<E, T1> v1, Validation<E, T2> v2, Validation<E, T3> v3, Validation<E, T4> v4, Validation<E, T5> v5, Validation<E, T6> v6, Validation<E, T7> v7, Validation<E, T8> v8) -
Method Summary
-
Field Details
-
v1
-
v2
-
v3
-
v4
-
v5
-
v6
-
v7
-
v8
-
-
Constructor Details
-
Builder8
private Builder8(Validation<E, T1> v1, Validation<E, T2> v2, Validation<E, T3> v3, Validation<E, T4> v4, Validation<E, T5> v5, Validation<E, T6> v6, Validation<E, T7> v7, Validation<E, T8> v8)
-
-
Method Details
-
ap
Applies an octonary function to the values of the eight validations held by this builder. If all validations are valid, the function is applied. Otherwise, errors are accumulated.- Type Parameters:
R- type of the result- Parameters:
f- the function to apply- Returns:
- a Validation with the result or accumulated errors
-