@Test public void testFilter_performFiltering() throws Exception { Filter filter = autoCompleteAdapter.getFilter(); assertThat(filter, notNullValue()); performFiltering(filter, "it"); verify(((TypeAdapterDelegate) typeAdapter).getFilter()).stripHandle(eq("it")); verify(((TypeAdapterDelegate) typeAdapter).getFilter()).supportsToken("it"); verify(((TypeAdapterDelegate) typeAdapter).getFilter()).performFiltering("it", dataset); }
@Override public @NonNull Filter getFilter() { if (filter == null) { filter = new AutoCompleteFilter(); if (delayer != null) { injectDelayer(filter, delayer); } } return filter; }
AutoCompleteAdapter extends BaseAdapter implements Filterable { @Override public @NonNull Filter getFilter() { if (filter == null) { filter = new AutoCompleteFilter(); if (delayer != null) { injectDelayer(filter, delayer); } } return filter; } }
AutoCompleteAdapter extends BaseAdapter implements Filterable { @Override public @NonNull Filter getFilter() { if (filter == null) { filter = new AutoCompleteFilter(); if (delayer != null) { injectDelayer(filter, delayer); } } return filter; } AutoCompleteAdapter(@NonNull Context context,
                        @NonNull List<TypeAdapterDelegate> typeAdapters,
                        @Nullable MultiAutoComplete.Delayer delayer); }
AutoCompleteAdapter extends BaseAdapter implements Filterable { @Override public @NonNull Filter getFilter() { if (filter == null) { filter = new AutoCompleteFilter(); if (delayer != null) { injectDelayer(filter, delayer); } } return filter; } AutoCompleteAdapter(@NonNull Context context,
                        @NonNull List<TypeAdapterDelegate> typeAdapters,
                        @Nullable MultiAutoComplete.Delayer delayer); @Override int getCount(); @Override Object getItem(int position); @Override long getItemId(int position); @Override boolean hasStableIds(); @Override int getViewTypeCount(); @Override int getItemViewType(int position); @Override @NonNull View getView(int position, View convertView, @NonNull ViewGroup parent); @Override @NonNull Filter getFilter(); }
AutoCompleteAdapter extends BaseAdapter implements Filterable { @Override public @NonNull Filter getFilter() { if (filter == null) { filter = new AutoCompleteFilter(); if (delayer != null) { injectDelayer(filter, delayer); } } return filter; } AutoCompleteAdapter(@NonNull Context context,
                        @NonNull List<TypeAdapterDelegate> typeAdapters,
                        @Nullable MultiAutoComplete.Delayer delayer); @Override int getCount(); @Override Object getItem(int position); @Override long getItemId(int position); @Override boolean hasStableIds(); @Override int getViewTypeCount(); @Override int getItemViewType(int position); @Override @NonNull View getView(int position, View convertView, @NonNull ViewGroup parent); @Override @NonNull Filter getFilter();  }