@Test public void getItemCountTest() { final int itemCount = postRecyclerViewAdapter.getItemCount(); assertThat(itemCount).isEqualTo(posts.size()); }
@Override public int getItemCount() { return allPosts.size(); }
PostRecyclerViewAdapter extends RecyclerView.Adapter<PostViewHolder> implements RecyclerViewAdapter { @Override public int getItemCount() { return allPosts.size(); } }
PostRecyclerViewAdapter extends RecyclerView.Adapter<PostViewHolder> implements RecyclerViewAdapter { @Override public int getItemCount() { return allPosts.size(); } PostRecyclerViewAdapter(final OnViewClickListener onViewClickListener); }
PostRecyclerViewAdapter extends RecyclerView.Adapter<PostViewHolder> implements RecyclerViewAdapter { @Override public int getItemCount() { return allPosts.size(); } PostRecyclerViewAdapter(final OnViewClickListener onViewClickListener); @Override PostViewHolder onCreateViewHolder(final ViewGroup parent, final int viewType); @Override void onBindViewHolder(final PostViewHolder holder, final int position); @Override int getItemCount(); @Override void reloadAdapter(final List<Post> posts); @Override Post getItem(int position); }
PostRecyclerViewAdapter extends RecyclerView.Adapter<PostViewHolder> implements RecyclerViewAdapter { @Override public int getItemCount() { return allPosts.size(); } PostRecyclerViewAdapter(final OnViewClickListener onViewClickListener); @Override PostViewHolder onCreateViewHolder(final ViewGroup parent, final int viewType); @Override void onBindViewHolder(final PostViewHolder holder, final int position); @Override int getItemCount(); @Override void reloadAdapter(final List<Post> posts); @Override Post getItem(int position);  }