title: How to convert a list with properties to a another list the java 8 way?
body: <p>There is a List A with property Developer. Developer schema likes that:</p>
  
  <pre><code>@Getter
  @Setter
  public class Developer {
      private String name;
      private int age;
  
      public Developer(String name, int age) {
          this.name = name;
          this.age = age;
      }
  
      public Developer name(String name) {
          this.name = name;
          return this;
      }
  
      public Developer name(int age) {
          this.age = age;
          return this;
      }
  }
  </code></pre>
  
  <p>List A with properties:</p>
  
  <pre><code>List&lt;Developer&gt; A = ImmutableList.of(new Developer("Ivan", 25), new Developer("Curry", 28));
  </code></pre>
  
  <p>It is demanded to convert List A to List B which with property ProductManager and the properties is same as the ones of List A.</p>
  
  <pre><code>@Getter
  @Setter
  public class ProductManager {
      private String name;
      private int age;
  
      public ProductManager(String name, int age) {
          this.name = name;
          this.age = age;
      }
  
      public ProductManager name(String name) {
          this.name = name;
          return this;
      }
  
      public ProductManager name(int age) {
          this.age = age;
          return this;
      }
  }
  </code></pre>
  
  <p>In the old days, we would write codes like:</p>
  
  <pre><code>public List&lt;ProductManager&gt; convert() {
      List&lt;ProductManager&gt; pros = new ArrayList&lt;&gt;();
      for (Developer dev: A) {
          ProductManager manager = new ProductManager();
          manager.setName(dev.getName());
          manager.setAge(dev.getAge());
          pros.add(manager);
      }
      return pros;
  }
  </code></pre>
  
  <p>How could we write the above in a more elegant and brief manner with Java 8?</p>