title: Move properties between different lists
body: <p>I just want to move one property between two different lists:</p>
  
  <p>I have one list of Dogs <code>List&lt;Dog&gt;</code></p>
  
  <pre><code>public class Dog{
      private int id;
      private String name;
      private String newValue;
  }
  </code></pre>
  
  <p>In this first list I don´t have values for <em>newValue</em> property.</p>
  
  <p>The second list is <code>List&lt;DogProp&gt;</code></p>
  
  <pre><code>public class DogProp{
      private int id;
      private String newValue;
  }
  </code></pre>
  
  <p>In this second list I have the values for <em>newValue</em> property.</p>
  
  <p>What I want is to move <em>newValue</em> property from <code>List&lt;DogProp&gt;</code> to <code>List&lt;Dog&gt;.</code>
  In this case the list can have different numbers of elements and different elements, it means the size of list can be different and elements also.</p>
  
  <p>The operation I want is something like:</p>
  
  <ul>
  <li>If id property in <code>List&lt;DogProp&gt;</code> <strong>match</strong> the id property in <code>List&lt;Dog&gt;</code>, I want to move the <em>newValue</em> property from <code>List&lt;DogProp&gt;</code> to <code>List&lt;Dog&gt;</code></li>
  </ul>
  
  <p>I know I can create some kind of algorithm to do this but I was wondering if there is an existing solution in some google project or apache commons project just to avoid 
  reinvented the wheel. </p>
  
  <p><strong>UPDATE</strong>:
  As this seems to be off topic as I'm asking for a library to do this, now I want to know the best way to achieve this using a tool or an algorithm.</p>
  
  <p>Thanks.</p>