@Test public void getItemId() throws Exception { Filter filter = autoCompleteAdapter.getFilter(); performFiltering(filter, ""); assertThat(autoCompleteAdapter.getItemId(0), is((long) "Ireland".hashCode())); assertThat(autoCompleteAdapter.getItemId(3), is((long) "Spain".hashCode())); }
@Override public long getItemId(int position) { return currentTypeAdapter.getItemId(position); }
AutoCompleteAdapter extends BaseAdapter implements Filterable { @Override public long getItemId(int position) { return currentTypeAdapter.getItemId(position); } }
AutoCompleteAdapter extends BaseAdapter implements Filterable { @Override public long getItemId(int position) { return currentTypeAdapter.getItemId(position); } AutoCompleteAdapter(@NonNull Context context,
                        @NonNull List<TypeAdapterDelegate> typeAdapters,
                        @Nullable MultiAutoComplete.Delayer delayer); }
AutoCompleteAdapter extends BaseAdapter implements Filterable { @Override public long getItemId(int position) { return currentTypeAdapter.getItemId(position); } 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 long getItemId(int position) { return currentTypeAdapter.getItemId(position); } 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();  }