@Test public void testWithReset() { f.setFilter(1, 7, 8, 17); confirmOnlyFiltered(1, 7, 8, 17); f.setFilter(0); confirmOnlyFiltered(0); f.setFilter(13, 19); confirmOnlyFiltered(13, 19); }
public void setFilter(int ... ids) { synchronized (bitmap) { for (int aFilter : filter) setFilterOff(aFilter); this.filter = ids; for (int aFilter : filter) setFilterOn(aFilter); } }
FastIntFilter { public void setFilter(int ... ids) { synchronized (bitmap) { for (int aFilter : filter) setFilterOff(aFilter); this.filter = ids; for (int aFilter : filter) setFilterOn(aFilter); } } }
FastIntFilter { public void setFilter(int ... ids) { synchronized (bitmap) { for (int aFilter : filter) setFilterOff(aFilter); this.filter = ids; for (int aFilter : filter) setFilterOn(aFilter); } } FastIntFilter(int size); }
FastIntFilter { public void setFilter(int ... ids) { synchronized (bitmap) { for (int aFilter : filter) setFilterOff(aFilter); this.filter = ids; for (int aFilter : filter) setFilterOn(aFilter); } } FastIntFilter(int size); void setFilter(int ... ids); boolean isFiltered(int id); }
FastIntFilter { public void setFilter(int ... ids) { synchronized (bitmap) { for (int aFilter : filter) setFilterOff(aFilter); this.filter = ids; for (int aFilter : filter) setFilterOn(aFilter); } } FastIntFilter(int size); void setFilter(int ... ids); boolean isFiltered(int id);  }