@Test public void testInstantiationWithInitialItems() { final List<String> items = new ArrayList<>(0); final SimpleListAdapter<TestAdapter, ViewHolder, String> adapter = new TestAdapter(context, items); assertThat(adapter.getContext(), is(context)); assertThat(adapter.getItems(), is(items)); assertThat(adapter.getHolderFactory(), is(notNullValue())); assertThat(adapter.getHolderBinder(), is(notNullValue())); }
@Override @Nullable public List<I> getItems() { return dataSet.getItems(); }
SimpleListAdapter extends BaseListAdapter<A, VH, I> implements
		SimpleAdapter<I> { @Override @Nullable public List<I> getItems() { return dataSet.getItems(); } }
SimpleListAdapter extends BaseListAdapter<A, VH, I> implements
		SimpleAdapter<I> { @Override @Nullable public List<I> getItems() { return dataSet.getItems(); } SimpleListAdapter(@NonNull final Context context);  SimpleListAdapter(@NonNull final Context context, @NonNull final I[] items);  SimpleListAdapter(@NonNull final Context context, @NonNull final List<I> items); @SuppressWarnings("unchecked") @VisibleForTesting  SimpleListAdapter(final Context context, final SimpleAdapterDataSet<I> dataSet); }
SimpleListAdapter extends BaseListAdapter<A, VH, I> implements
		SimpleAdapter<I> { @Override @Nullable public List<I> getItems() { return dataSet.getItems(); } SimpleListAdapter(@NonNull final Context context);  SimpleListAdapter(@NonNull final Context context, @NonNull final I[] items);  SimpleListAdapter(@NonNull final Context context, @NonNull final List<I> items); @SuppressWarnings("unchecked") @VisibleForTesting  SimpleListAdapter(final Context context, final SimpleAdapterDataSet<I> dataSet); @Override void registerOnDataSetSwapListener(@NonNull final OnDataSetSwapListener<List<I>> listener); @Override void unregisterOnDataSetSwapListener(@NonNull OnDataSetSwapListener<List<I>> listener); @Override void changeItems(@Nullable final List<I> items); @Override @Nullable List<I> swapItems(@Nullable final List<I> items); @Override void insertItem(@NonNull final I item); @Override void insertItem(final int position, @NonNull final I item); @Override void insertItems(@NonNull final List<I> items); @Override void insertItems(final int positionStart, @NonNull final List<I> items); @Override @NonNull I swapItem(final int position, @NonNull final I item); @Override @NonNull I swapItemById(final long itemId, @NonNull final I item); @Override void moveItem(final int fromPosition, final int toPosition); @Override @NonNull I removeItem(final int position); @Override int removeItem(@NonNull final I item); @Override @NonNull I removeItemById(final long itemId); @Override @NonNull List<I> removeItems(final int positionStart, final int itemCount); @Override @Nullable List<I> getItems(); @Override int getItemCount(); @Override boolean hasItemAt(final int position); @Override @NonNull I getItem(final int position); }
SimpleListAdapter extends BaseListAdapter<A, VH, I> implements
		SimpleAdapter<I> { @Override @Nullable public List<I> getItems() { return dataSet.getItems(); } SimpleListAdapter(@NonNull final Context context);  SimpleListAdapter(@NonNull final Context context, @NonNull final I[] items);  SimpleListAdapter(@NonNull final Context context, @NonNull final List<I> items); @SuppressWarnings("unchecked") @VisibleForTesting  SimpleListAdapter(final Context context, final SimpleAdapterDataSet<I> dataSet); @Override void registerOnDataSetSwapListener(@NonNull final OnDataSetSwapListener<List<I>> listener); @Override void unregisterOnDataSetSwapListener(@NonNull OnDataSetSwapListener<List<I>> listener); @Override void changeItems(@Nullable final List<I> items); @Override @Nullable List<I> swapItems(@Nullable final List<I> items); @Override void insertItem(@NonNull final I item); @Override void insertItem(final int position, @NonNull final I item); @Override void insertItems(@NonNull final List<I> items); @Override void insertItems(final int positionStart, @NonNull final List<I> items); @Override @NonNull I swapItem(final int position, @NonNull final I item); @Override @NonNull I swapItemById(final long itemId, @NonNull final I item); @Override void moveItem(final int fromPosition, final int toPosition); @Override @NonNull I removeItem(final int position); @Override int removeItem(@NonNull final I item); @Override @NonNull I removeItemById(final long itemId); @Override @NonNull List<I> removeItems(final int positionStart, final int itemCount); @Override @Nullable List<I> getItems(); @Override int getItemCount(); @Override boolean hasItemAt(final int position); @Override @NonNull I getItem(final int position);  }