Package org.instancio
Interface ValueOfOriginDestination
- All Superinterfaces:
Assignment
An assigment containing origin and destination selectors.
- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies a function for mapping the value of the origin selector to another type.<T> AssignmentA predicate that must be satisfied by the value matched by the origin selector.
-
Method Details
-
as
Specifies a function for mapping the value of the origin selector to another type.- Type Parameters:
T- the origin value typeR- the destination value type- Parameters:
valueMapper- a function for mapping the origin value- Returns:
- continuation of the builder for optionally specifying a predicate
- Since:
- 3.0.0
-
when
A predicate that must be satisfied by the value matched by the origin selector.- Type Parameters:
T- the type of the value matched by the origin selector- Parameters:
predicate- to check the origin value against- Returns:
- an assignment
- Since:
- 3.0.0
-