V - Type of the value, for which this builder receives a check.R - Return type.@FunctionalInterface public interface TransformationBuilder<V,R>
| Modifier and Type | Method and Description |
|---|---|
default R |
equalTo(V expectedValue)
Set expected value, to which the actual one needs to be equal.
|
default <U> TransformationBuilder<U,R> |
having(String name,
Transformation<V,U> transformation)
Chain additional transformation, ending up with null safe chaining.
|
default <U> TransformationBuilder<U,R> |
having(Transformation<V,U> transformation)
Chain additional transformation, ending up with null safe chaining.
|
R |
matching(Check<? super V> check)
Set check, that a value must match.
|
R matching(Check<? super V> check)
check - Check to be met.default R equalTo(V expectedValue)
expectedValue - Expected value.default <U> TransformationBuilder<U,R> having(String name, Transformation<V,U> transformation)
U - Type of the transformed value.name - Description of the transformation (typically name of a field to access).transformation - Functional interface to provide transformation logic.default <U> TransformationBuilder<U,R> having(Transformation<V,U> transformation)
U - Type of the transformed value.transformation - Functional interface to provide transformation logic.Copyright © 2021. All rights reserved.