title: How to apply function of two arguments mapping objects using MapStruct?
body: <p>There are two source classes A and B</p>
  
  <pre><code>class A {
      public Double x;
      public Double y;
  }
  
  class B {
      public Double x;
      public Double y;
  }
  </code></pre>
  
  <p>and another target class C</p>
  
  <pre><code>class C {
      public Double x;
      public Double y;
  }
  </code></pre>
  
  <p>It is clear how to map A to C or B to C. </p>
  
  <p>Is it possible to map some function, for example, addition or pow of source objects to the target one so that the generated code will look like this</p>
  
  <pre><code>C.x = A.x + B.x
  C.y = A.y + B.y
  </code></pre>
  
  <p>or </p>
  
  <pre><code>C.x = Math.pow(A.x, B.x)
  C.y = Math.pow(A.y, B.y)
  </code></pre>