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