@Test public void testSetItems() throws Exception { adapterDelegate.setItems(dataset); assertThat(adapterDelegate.getItemsMap(), notNullValue()); assertThat(adapterDelegate.getItemsMap().size(), is(dataset.size())); assertThat(adapterDelegate.getItemsMap().values(), IsIterableContainingInOrder.contains(dataset.toArray())); assertThat(adapterDelegate.getCount(), is(0)); }
@Override @CallSuper public void setItems(@NonNull List<M> items) { computationExecutor.execute(() -> setItemsSync(items)); }
BaseTypeAdapterDelegate extends BaseAdapter implements TypeAdapterDelegate<M>, AutoCompleteTypeAdapter<M> { @Override @CallSuper public void setItems(@NonNull List<M> items) { computationExecutor.execute(() -> setItemsSync(items)); } }
BaseTypeAdapterDelegate extends BaseAdapter implements TypeAdapterDelegate<M>, AutoCompleteTypeAdapter<M> { @Override @CallSuper public void setItems(@NonNull List<M> items) { computationExecutor.execute(() -> setItemsSync(items)); } BaseTypeAdapterDelegate(@NonNull AutoCompleteViewBinder<M> viewBinder, @NonNull TokenFilter<M> tokenFilter); @VisibleForTesting  BaseTypeAdapterDelegate(@NonNull Executor computationExecutor,
                                               @NonNull Handler mainThreadHandler,
                                               @NonNull AutoCompleteViewBinder<M> viewBinder,
                                               @NonNull TokenFilter<M> tokenFilter); }
BaseTypeAdapterDelegate extends BaseAdapter implements TypeAdapterDelegate<M>, AutoCompleteTypeAdapter<M> { @Override @CallSuper public void setItems(@NonNull List<M> items) { computationExecutor.execute(() -> setItemsSync(items)); } BaseTypeAdapterDelegate(@NonNull AutoCompleteViewBinder<M> viewBinder, @NonNull TokenFilter<M> tokenFilter); @VisibleForTesting  BaseTypeAdapterDelegate(@NonNull Executor computationExecutor,
                                               @NonNull Handler mainThreadHandler,
                                               @NonNull AutoCompleteViewBinder<M> viewBinder,
                                               @NonNull TokenFilter<M> tokenFilter); @Override @NonNull TokenFilter<M> getFilter(); @Override @CallSuper void setItems(@NonNull List<M> items); @Override final void setFilteredItems(@NonNull List<M> filteredItems); @Override final int getCount(); @Override final @NonNull M getItem(int position); @Override long getItemId(int position); @Override @NonNull View getView(@NonNull LayoutInflater inflater,
                                 int position,
                                 @Nullable View convertView,
                                 @NonNull ViewGroup parent,
                                 @Nullable CharSequence constraint); @Override View getView(int position, View convertView, ViewGroup parent); @Override @WorkerThread final @NonNull List<M> performFiltering(@NonNull CharSequence constraint); @Override final void setOnTokensChangedListener(@Nullable OnTokensChangedListener<M> listener); @Override final void onTextChanged(@NonNull CharSequence text); }
BaseTypeAdapterDelegate extends BaseAdapter implements TypeAdapterDelegate<M>, AutoCompleteTypeAdapter<M> { @Override @CallSuper public void setItems(@NonNull List<M> items) { computationExecutor.execute(() -> setItemsSync(items)); } BaseTypeAdapterDelegate(@NonNull AutoCompleteViewBinder<M> viewBinder, @NonNull TokenFilter<M> tokenFilter); @VisibleForTesting  BaseTypeAdapterDelegate(@NonNull Executor computationExecutor,
                                               @NonNull Handler mainThreadHandler,
                                               @NonNull AutoCompleteViewBinder<M> viewBinder,
                                               @NonNull TokenFilter<M> tokenFilter); @Override @NonNull TokenFilter<M> getFilter(); @Override @CallSuper void setItems(@NonNull List<M> items); @Override final void setFilteredItems(@NonNull List<M> filteredItems); @Override final int getCount(); @Override final @NonNull M getItem(int position); @Override long getItemId(int position); @Override @NonNull View getView(@NonNull LayoutInflater inflater,
                                 int position,
                                 @Nullable View convertView,
                                 @NonNull ViewGroup parent,
                                 @Nullable CharSequence constraint); @Override View getView(int position, View convertView, ViewGroup parent); @Override @WorkerThread final @NonNull List<M> performFiltering(@NonNull CharSequence constraint); @Override final void setOnTokensChangedListener(@Nullable OnTokensChangedListener<M> listener); @Override final void onTextChanged(@NonNull CharSequence text);  }