title: How to reduce all the fields of object in java
body: <p>I have a Pojo class with all numeric fields</p>
  <pre><code>public class Pojo {
      private long field1;
      private long field2;
      private long field3;
      private long field4;
      private long field5;
      private double field6;
      private double field7;
      private double field8;
      private double field9;
  }
  </code></pre>
  <p>And there is a list of Pojo, I want map this list to one Pojo object which will contain in its field the of pojos foe, list. I mean someething like this :</p>
  <pre><code>public static void main(String[] args) {
      List&lt;Pojo&gt; pojoList = getPogoList();
      Pojo pojoInSum = reduceAllFields(pojoList);
  }
  </code></pre>
  <p>What is the simplest way to reduce all fields of pojos from list without reflection?</p>