@Test public void getItemTest() { final Post post = postRecyclerViewAdapter.getItem(POSITION); assertThat(post).isEqualTo(posts.get(POSITION)); }
@Override public Post getItem(int position) { return allPosts.get(position); }
PostRecyclerViewAdapter extends RecyclerView.Adapter<PostViewHolder> implements RecyclerViewAdapter { @Override public Post getItem(int position) { return allPosts.get(position); } }
PostRecyclerViewAdapter extends RecyclerView.Adapter<PostViewHolder> implements RecyclerViewAdapter { @Override public Post getItem(int position) { return allPosts.get(position); } PostRecyclerViewAdapter(final OnViewClickListener onViewClickListener); }
PostRecyclerViewAdapter extends RecyclerView.Adapter<PostViewHolder> implements RecyclerViewAdapter { @Override public Post getItem(int position) { return allPosts.get(position); } 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 Post getItem(int position) { return allPosts.get(position); } 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);  }