@Test public void testClearSelection() { final SelectionModule module = new SelectionModule(); module.setSelection(SELECTION_LIST); module.clearSelection(); assertThat(module.getSelectionSize(), is(0)); assertThat(module.getSelection(), is(not(nullValue()))); }
public void clearSelection() { clearSelection(true); }
SelectionModule extends AdapterModule { public void clearSelection() { clearSelection(true); } }
SelectionModule extends AdapterModule { public void clearSelection() { clearSelection(true); }  }
SelectionModule extends AdapterModule { public void clearSelection() { clearSelection(true); }  void setMode(@SelectionMode final int mode); @SelectionMode int getMode(); int toggleSelection(final long id); void setSelected(final long id, final boolean selected); void selectAll(); void selectRange(final int startPosition, final int count); void setSelection(@Nullable final List<Long> selection); boolean isSelected(final long id); @NonNull List<Long> getSelection(); int getSelectionSize(); void clearSelection(); void clearSelectionInRange(final int startPosition, final int count); @Override boolean requiresStateSaving(); @Override @CallSuper @NonNull Parcelable saveInstanceState(); @Override @CallSuper void restoreInstanceState(@NonNull final Parcelable savedState); }
SelectionModule extends AdapterModule { public void clearSelection() { clearSelection(true); }  void setMode(@SelectionMode final int mode); @SelectionMode int getMode(); int toggleSelection(final long id); void setSelected(final long id, final boolean selected); void selectAll(); void selectRange(final int startPosition, final int count); void setSelection(@Nullable final List<Long> selection); boolean isSelected(final long id); @NonNull List<Long> getSelection(); int getSelectionSize(); void clearSelection(); void clearSelectionInRange(final int startPosition, final int count); @Override boolean requiresStateSaving(); @Override @CallSuper @NonNull Parcelable saveInstanceState(); @Override @CallSuper void restoreInstanceState(@NonNull final Parcelable savedState); static final int SINGLE; static final int MULTIPLE; }