Package org.instancio
Interface GivenOrigin
Represents an origin selector of a conditional assignment.
- Since:
- 3.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionis
(T value) Checks if the origin value is equal to givenvalue
usingObjects.equals(Object, Object)
.isIn
(T... values) Checks if the origin value is equal to any of givenvalues
usingObjects.equals(Object, Object)
.isNot
(T value) Checks if the origin value is not equal to givenvalue
usingObjects.equals(Object, Object)
.Checks if the origin value matched satisfies givenpredicate
.
-
Method Details
-
satisfies
Checks if the origin value matched satisfies givenpredicate
.- Type Parameters:
T
- type the condition is evaluated against- Parameters:
predicate
- that must be satisfied by value matched by the origin selector- Returns:
- assignment builder reference
- Since:
- 3.0.0
-
is
Checks if the origin value is equal to givenvalue
usingObjects.equals(Object, Object)
.- Type Parameters:
T
- type the condition is evaluated against- Parameters:
value
- the value the origin selector's match must be equal to- Returns:
- assignment builder reference
- Since:
- 3.0.0
-
isNot
Checks if the origin value is not equal to givenvalue
usingObjects.equals(Object, Object)
.- Type Parameters:
T
- type the condition is evaluated against- Parameters:
value
- the value the origin selector's match must NOT be equal to- Returns:
- assignment builder reference
- Since:
- 3.0.0
-
isIn
Checks if the origin value is equal to any of givenvalues
usingObjects.equals(Object, Object)
.- Type Parameters:
T
- type the condition is evaluated against- Parameters:
values
- the values to compare origin selector's match against- Returns:
- assignment builder reference
- Since:
- 3.0.0
-