@Test public void returns_float_list() { Object object = this.builder.getList(new double[] {1.0}, Float.class).get(0); assertTrue(object instanceof Float); assertEquals((float) 1, 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);  }