@Test public void testSize() throws Exception { assertEquals(0, productList.size()); productList.addProduct(createSearchResult(1)); assertEquals(1, productList.size()); productList.addProduct(createSearchResult(2)); assertEquals(2, productList.size()); productList.addProduct(createSearchResult(3)); productList.addProduct(createSearchResult(4)); productList.addProduct(createSearchResult(5)); productList.addProduct(createSearchResult(6)); productList.addProduct(createSearchResult(6)); assertEquals(7, productList.size()); }
public int size() { return searchResults.size(); }
ProductList { public int size() { return searchResults.size(); } }
ProductList { public int size() { return searchResults.size(); } private  ProductList(@NonNull final List<SearchResult> searchResults); }
ProductList { public int size() { return searchResults.size(); } private  ProductList(@NonNull final List<SearchResult> searchResults); static ProductList create(@Nullable Bundle bundle); void setOnProductListChanged(@Nullable OnProductListChanged onProductListChanged); void writeToBundle(@NonNull final Bundle bundle); void addProduct(SearchResult searchResult); void createProductPlaceholder(); void removeProductPlaceholder(); boolean itemExists(String code); int size(); SearchResult get(int position); }
ProductList { public int size() { return searchResults.size(); } private  ProductList(@NonNull final List<SearchResult> searchResults); static ProductList create(@Nullable Bundle bundle); void setOnProductListChanged(@Nullable OnProductListChanged onProductListChanged); void writeToBundle(@NonNull final Bundle bundle); void addProduct(SearchResult searchResult); void createProductPlaceholder(); void removeProductPlaceholder(); boolean itemExists(String code); int size(); SearchResult get(int position);  }