@Test public void toEntries_GivenEmptyList_ShouldReturnEmptyList() throws IOException { Assert.assertThat(translator.toEntries(Collections.emptyList()), Matchers.empty()); }
public List<PutRecordsRequestEntry> toEntries(List<T> items) throws IOException { LinkedList<PutRecordsRequestEntry> result = new LinkedList<>(); if (items != null && !items.isEmpty()) { for (T item : items) { result.add(toEntry(item)); } } return result; }
AbstractPutRecordsRequestTranslator { public List<PutRecordsRequestEntry> toEntries(List<T> items) throws IOException { LinkedList<PutRecordsRequestEntry> result = new LinkedList<>(); if (items != null && !items.isEmpty()) { for (T item : items) { result.add(toEntry(item)); } } return result; } }
AbstractPutRecordsRequestTranslator { public List<PutRecordsRequestEntry> toEntries(List<T> items) throws IOException { LinkedList<PutRecordsRequestEntry> result = new LinkedList<>(); if (items != null && !items.isEmpty()) { for (T item : items) { result.add(toEntry(item)); } } return result; }  }
AbstractPutRecordsRequestTranslator { public List<PutRecordsRequestEntry> toEntries(List<T> items) throws IOException { LinkedList<PutRecordsRequestEntry> result = new LinkedList<>(); if (items != null && !items.isEmpty()) { for (T item : items) { result.add(toEntry(item)); } } return result; }  List<PutRecordsRequestEntry> toEntries(List<T> items); }
AbstractPutRecordsRequestTranslator { public List<PutRecordsRequestEntry> toEntries(List<T> items) throws IOException { LinkedList<PutRecordsRequestEntry> result = new LinkedList<>(); if (items != null && !items.isEmpty()) { for (T item : items) { result.add(toEntry(item)); } } return result; }  List<PutRecordsRequestEntry> toEntries(List<T> items);  }