am.summ.add(bi);
break;
case 14: Complex cc = (Complex)summ.get(0);
am.summ.add(cc);
break;
case 15: Phasor pp = (Phasor)summ.get(0);
am.summ.add(pp);
break;
default: throw new IllegalArgumentException("Data type not identified by this method");
}
}
am.productt = new ArrayList<Object>();
if(this.productt.size()!=0){
switch(this.type){
case 0:
case 1:
case 2:
case 3:
case 18: double dd = ((Double)productt.get(0)).doubleValue();
am.productt.add(new Double(dd));
break;
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
case 11:
case 16:
case 17: if(this.sumlongToDouble){
double dd2 = ((Double)productt.get(0)).doubleValue();
am.productt.add(new Double(dd2));
}
else{
long ll = ((Long)productt.get(0)).longValue();
am.productt.add(new Long(ll));
}
break;
case 12: BigDecimal bd = (BigDecimal)productt.get(0);
am.productt.add(bd);
break;
case 13: BigInteger bi = (BigInteger)productt.get(0);
am.productt.add(bi);
break;
case 14: Complex cc = (Complex)productt.get(0);
am.productt.add(cc);
break;
case 15: Phasor pp = (Phasor)productt.get(0);
am.productt.add(pp);
break;
default: throw new IllegalArgumentException("Data type not identified by this method");
}
}