@Test public void testGetSelectedItemDefault() { final TestAdapter adapter = new TestAdapter(context); assertThat(adapter.getSelectedItem(), is(nullValue())); }
@Nullable public I getSelectedItem() { return selectedPosition == NO_POSITION ? null : getItem(selectedPosition); }
BaseSpinnerAdapter extends BaseListAdapter<A, VH, I> { @Nullable public I getSelectedItem() { return selectedPosition == NO_POSITION ? null : getItem(selectedPosition); } }
BaseSpinnerAdapter extends BaseListAdapter<A, VH, I> { @Nullable public I getSelectedItem() { return selectedPosition == NO_POSITION ? null : getItem(selectedPosition); } BaseSpinnerAdapter(@NonNull final Context context); }
BaseSpinnerAdapter extends BaseListAdapter<A, VH, I> { @Nullable public I getSelectedItem() { return selectedPosition == NO_POSITION ? null : getItem(selectedPosition); } BaseSpinnerAdapter(@NonNull final Context context); void setDropDownHolderFactory(@Nullable final AdapterHolder.Factory<DVH> factory); @Nullable AdapterHolder.Factory<DVH> getDropDownHolderFactory(); void setDropDownHolderBinder(@Nullable final AdapterHolder.Binder<A, DVH> binder); @Nullable AdapterHolder.Binder<A, DVH> getDropDownHolderBinder(); @Nullable I getSelectedItem(); int getSelectedPosition(); @Override View getView(final int position, @Nullable final View convertView, @NonNull final ViewGroup parent); @SuppressWarnings("unchecked") @Override View getDropDownView(final int position, @Nullable final View convertView, @NonNull final ViewGroup parent); }
BaseSpinnerAdapter extends BaseListAdapter<A, VH, I> { @Nullable public I getSelectedItem() { return selectedPosition == NO_POSITION ? null : getItem(selectedPosition); } BaseSpinnerAdapter(@NonNull final Context context); void setDropDownHolderFactory(@Nullable final AdapterHolder.Factory<DVH> factory); @Nullable AdapterHolder.Factory<DVH> getDropDownHolderFactory(); void setDropDownHolderBinder(@Nullable final AdapterHolder.Binder<A, DVH> binder); @Nullable AdapterHolder.Binder<A, DVH> getDropDownHolderBinder(); @Nullable I getSelectedItem(); int getSelectedPosition(); @Override View getView(final int position, @Nullable final View convertView, @NonNull final ViewGroup parent); @SuppressWarnings("unchecked") @Override View getDropDownView(final int position, @Nullable final View convertView, @NonNull final ViewGroup parent);  }