@Test public void getItemCount_noArticleNoElements() { assertEquals(0, new ArticleAdapter(null, 0, 0, 1).getItemCount()); }
@Override public int getItemCount() { int count = 0; count += getTopItemCount(); if (elements != null) { count += elements.size(); } return count; }
ArticleAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { @Override public int getItemCount() { int count = 0; count += getTopItemCount(); if (elements != null) { count += elements.size(); } return count; } }
ArticleAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { @Override public int getItemCount() { int count = 0; count += getTopItemCount(); if (elements != null) { count += elements.size(); } return count; } ArticleAdapter(Article article, int accentColor, int textSize, int theme); }
ArticleAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { @Override public int getItemCount() { int count = 0; count += getTopItemCount(); if (elements != null) { count += elements.size(); } return count; } ArticleAdapter(Article article, int accentColor, int textSize, int theme); @Override RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType); @Override void onBindViewHolder(RecyclerView.ViewHolder holder, int position); @Override int getItemViewType(int position); @Override int getItemCount(); @Override void onAttachedToRecyclerView(RecyclerView recyclerView); }
ArticleAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { @Override public int getItemCount() { int count = 0; count += getTopItemCount(); if (elements != null) { count += elements.size(); } return count; } ArticleAdapter(Article article, int accentColor, int textSize, int theme); @Override RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType); @Override void onBindViewHolder(RecyclerView.ViewHolder holder, int position); @Override int getItemViewType(int position); @Override int getItemCount(); @Override void onAttachedToRecyclerView(RecyclerView recyclerView);  }