@Test public void getAllFilterNames() { final List<String> expectFilterNames = IntStream.range(1, 100).mapToObj(TestingUtils::numberString).collect(Collectors.toList()); final ExpirableBloomFilterConfig config = new ExpirableBloomFilterConfig(); for (final String name : expectFilterNames) { manager.createFilter(name, config); } assertThat(manager.getAllFilterNames()).containsExactlyInAnyOrderElementsOf(expectFilterNames); }
@Override public List<String> getAllFilterNames() { return new ArrayList<>(filterMap.keySet()); }
BloomFilterManagerImpl implements BloomFilterManager<T, C>,
        Listenable<BloomFilterManagerListener<? super T, C>> { @Override public List<String> getAllFilterNames() { return new ArrayList<>(filterMap.keySet()); } }
BloomFilterManagerImpl implements BloomFilterManager<T, C>,
        Listenable<BloomFilterManagerListener<? super T, C>> { @Override public List<String> getAllFilterNames() { return new ArrayList<>(filterMap.keySet()); } BloomFilterManagerImpl(BloomFilterFactory<? extends T, ? super C> factory); }
BloomFilterManagerImpl implements BloomFilterManager<T, C>,
        Listenable<BloomFilterManagerListener<? super T, C>> { @Override public List<String> getAllFilterNames() { return new ArrayList<>(filterMap.keySet()); } BloomFilterManagerImpl(BloomFilterFactory<? extends T, ? super C> factory); @Override CreateFilterResult<T> createFilter(String name, C config, boolean overwrite); @Override void addFilters(Iterable<FilterRecord<? extends T>> filters); @Nullable @Override T getFilter(String name); @Override T ensureGetValidFilter(String name); @Override List<String> getAllFilterNames(); @Override int size(); @Override void remove(String name); @Override void remove(String name, T filter); @Override Iterator<FilterRecord<T>> iterator(); @Override void addListener(BloomFilterManagerListener<? super T, C> listener); @Override boolean removeListener(BloomFilterManagerListener<? super T, C> listener); }
BloomFilterManagerImpl implements BloomFilterManager<T, C>,
        Listenable<BloomFilterManagerListener<? super T, C>> { @Override public List<String> getAllFilterNames() { return new ArrayList<>(filterMap.keySet()); } BloomFilterManagerImpl(BloomFilterFactory<? extends T, ? super C> factory); @Override CreateFilterResult<T> createFilter(String name, C config, boolean overwrite); @Override void addFilters(Iterable<FilterRecord<? extends T>> filters); @Nullable @Override T getFilter(String name); @Override T ensureGetValidFilter(String name); @Override List<String> getAllFilterNames(); @Override int size(); @Override void remove(String name); @Override void remove(String name, T filter); @Override Iterator<FilterRecord<T>> iterator(); @Override void addListener(BloomFilterManagerListener<? super T, C> listener); @Override boolean removeListener(BloomFilterManagerListener<? super T, C> listener);  }