@Test public void returns_big_decimal_list() { Object object = this.builder.getList(new double[] {1.0}, BigDecimal.class).get(0); assertTrue(object instanceof BigDecimal); assertEquals(BigDecimal.valueOf(1.0), object); }
public List<Object> getList(double[] numbers, Type requestType) { List<Object> objectList = new ArrayList<Object>(); for (double doubleValue : numbers) { Object actualNumber = toActualNumber(doubleValue, requestType); objectList.add(actualNumber); } return objectList; }
NumberListBuilder { public List<Object> getList(double[] numbers, Type requestType) { List<Object> objectList = new ArrayList<Object>(); for (double doubleValue : numbers) { Object actualNumber = toActualNumber(doubleValue, requestType); objectList.add(actualNumber); } return objectList; } }
NumberListBuilder { public List<Object> getList(double[] numbers, Type requestType) { List<Object> objectList = new ArrayList<Object>(); for (double doubleValue : numbers) { Object actualNumber = toActualNumber(doubleValue, requestType); objectList.add(actualNumber); } return objectList; }  }
NumberListBuilder { public List<Object> getList(double[] numbers, Type requestType) { List<Object> objectList = new ArrayList<Object>(); for (double doubleValue : numbers) { Object actualNumber = toActualNumber(doubleValue, requestType); objectList.add(actualNumber); } return objectList; }  List<Object> getList(double[] numbers, Type requestType); }
NumberListBuilder { public List<Object> getList(double[] numbers, Type requestType) { List<Object> objectList = new ArrayList<Object>(); for (double doubleValue : numbers) { Object actualNumber = toActualNumber(doubleValue, requestType); objectList.add(actualNumber); } return objectList; }  List<Object> getList(double[] numbers, Type requestType);  }