@Test public void setItems() { List<Object> newItems = new ArrayList<>(); adapter.setItems(newItems); assertSame(newItems, adapter.getItems()); }
public void setItems(List<Item> items) { this.items = items; doNotifyDataSetChanged(); }
WitchRecyclerViewAdapter extends RecyclerView.Adapter<EmptyViewHolder> { public void setItems(List<Item> items) { this.items = items; doNotifyDataSetChanged(); } }
WitchRecyclerViewAdapter extends RecyclerView.Adapter<EmptyViewHolder> { public void setItems(List<Item> items) { this.items = items; doNotifyDataSetChanged(); } WitchRecyclerViewAdapter(List<Item> items, List<Binder<? extends Item>> binders);  WitchRecyclerViewAdapter(List<Binder<? extends Item>> binders); }
WitchRecyclerViewAdapter extends RecyclerView.Adapter<EmptyViewHolder> { public void setItems(List<Item> items) { this.items = items; doNotifyDataSetChanged(); } WitchRecyclerViewAdapter(List<Item> items, List<Binder<? extends Item>> binders);  WitchRecyclerViewAdapter(List<Binder<? extends Item>> binders); @Override int getItemViewType(int position); @Override @NonNull EmptyViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int viewType); @Override void onBindViewHolder(@NonNull EmptyViewHolder emptyViewHolder, int position); @Override int getItemCount(); List<Item> getItems(); void setItems(List<Item> items); }
WitchRecyclerViewAdapter extends RecyclerView.Adapter<EmptyViewHolder> { public void setItems(List<Item> items) { this.items = items; doNotifyDataSetChanged(); } WitchRecyclerViewAdapter(List<Item> items, List<Binder<? extends Item>> binders);  WitchRecyclerViewAdapter(List<Binder<? extends Item>> binders); @Override int getItemViewType(int position); @Override @NonNull EmptyViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int viewType); @Override void onBindViewHolder(@NonNull EmptyViewHolder emptyViewHolder, int position); @Override int getItemCount(); List<Item> getItems(); void setItems(List<Item> items);  }