Package org.instancio

Interface ValueOfOriginDestinationPredicate

All Superinterfaces:
Assignment

@ExperimentalApi public interface ValueOfOriginDestinationPredicate extends Assignment
An assigment containing origin and destination selectors, and a predicate that the origin value must satisfy for the assignment to be applied.
Since:
3.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    when(Predicate<T> predicate)
    A predicate that must be satisfied by the value matched by the origin selector.
  • Method Details

    • when

      <T> Assignment when(Predicate<T> predicate)
      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