@Test public void getItemIdReturnsPosition() { TaskAdapter adapter = new TaskAdapter(mContext, LAYOUT, mTasks); assertEquals(0, adapter.getItemId(0)); assertEquals(1, adapter.getItemId(1)); assertEquals(666, adapter.getItemId(666)); }
@Override public long getItemId(int position) { return position; }
TaskAdapter extends BaseAdapter implements Filterable { @Override public long getItemId(int position) { return position; } }
TaskAdapter extends BaseAdapter implements Filterable { @Override public long getItemId(int position) { return position; } TaskAdapter(Context context, int resource, Vector<Task> data); }
TaskAdapter extends BaseAdapter implements Filterable { @Override public long getItemId(int position) { return position; } TaskAdapter(Context context, int resource, Vector<Task> data); @Override int getCount(); @Override Task getItem(int position); @Override long getItemId(int position); @Override View getView(int position, View convertView, ViewGroup parent); @Override Filter getFilter(); }
TaskAdapter extends BaseAdapter implements Filterable { @Override public long getItemId(int position) { return position; } TaskAdapter(Context context, int resource, Vector<Task> data); @Override int getCount(); @Override Task getItem(int position); @Override long getItemId(int position); @Override View getView(int position, View convertView, ViewGroup parent); @Override Filter getFilter();  }