@Test public void test_createsRecordsArrayMatchingSizeOfNodesList() { final ArrayList<JsonNode> nodes = Lists.<JsonNode> newArrayList(aJsonObject()); assertEquals(nodes.size(), recordFactory.newRecords(nodes).length); }
public Record[] newRecords(List<JsonNode> nodes) { final Record[] records = new Record[nodes.size()]; for (int i = 0; i < records.length; i++) { records[i] = newRecord(nodes.get(i)); } return records; }
RecordFactory { public Record[] newRecords(List<JsonNode> nodes) { final Record[] records = new Record[nodes.size()]; for (int i = 0; i < records.length; i++) { records[i] = newRecord(nodes.get(i)); } return records; } }
RecordFactory { public Record[] newRecords(List<JsonNode> nodes) { final Record[] records = new Record[nodes.size()]; for (int i = 0; i < records.length; i++) { records[i] = newRecord(nodes.get(i)); } return records; } @Inject  RecordFactory(RecordJSONUpdater updater); }
RecordFactory { public Record[] newRecords(List<JsonNode> nodes) { final Record[] records = new Record[nodes.size()]; for (int i = 0; i < records.length; i++) { records[i] = newRecord(nodes.get(i)); } return records; } @Inject  RecordFactory(RecordJSONUpdater updater); Record newRecord(JsonNode node); Record[] newRecords(List<JsonNode> nodes); }
RecordFactory { public Record[] newRecords(List<JsonNode> nodes) { final Record[] records = new Record[nodes.size()]; for (int i = 0; i < records.length; i++) { records[i] = newRecord(nodes.get(i)); } return records; } @Inject  RecordFactory(RecordJSONUpdater updater); Record newRecord(JsonNode node); Record[] newRecords(List<JsonNode> nodes);  }