test_class.declarator: factory = new GuavaBloomFilterFactory()
test_class.modifier: private static final
test_class.original_string: private static final GuavaBloomFilterFactory factory = new GuavaBloomFilterFactory();
test_class.type: GuavaBloomFilterFactory
test_class.var_name: factory
test_class.declarator: testingFilterName = "TestingFilterName"
test_class.modifier: private static final
test_class.original_string: private static final String testingFilterName = "TestingFilterName";
test_class.type: String
test_class.var_name: testingFilterName
test_class.declarator: manager
test_class.modifier: private
test_class.original_string: private BloomFilterManagerImpl<BloomFilter, ExpirableBloomFilterConfig> manager;
test_class.type: BloomFilterManagerImpl<BloomFilter, ExpirableBloomFilterConfig>
test_class.var_name: manager
test_class.file: filter-service-core/src/test/java/cn/leancloud/filter/service/BloomFilterManagerImplTest.java
test_class.identifier: BloomFilterManagerImplTest
test_case.body: @Test
      public void testSize() {
          final int expectSize = ThreadLocalRandom.current().nextInt(1, 100);
          final ExpirableBloomFilterConfig config = new ExpirableBloomFilterConfig();
          for (int i = 0; i < expectSize; i++) {
              manager.createFilter(numberString(i), config);
          }
  
          assertThat(manager.size()).isEqualTo(expectSize);
      }
test_case.class_method_signature: BloomFilterManagerImplTest.testSize()
test_case.full_signature: @Test public void testSize()
test_case.identifier: testSize
test_case.invocations: nextInt current createFilter numberString isEqualTo assertThat size
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSize()
focal_class.declarator: FILTER_NOT_FOUND_EXCEPTION = new FilterNotFoundException()
focal_class.modifier: private static final
focal_class.original_string: private static final FilterNotFoundException FILTER_NOT_FOUND_EXCEPTION = new FilterNotFoundException();
focal_class.type: FilterNotFoundException
focal_class.var_name: FILTER_NOT_FOUND_EXCEPTION
focal_class.declarator: listeners
focal_class.modifier: private final
focal_class.original_string: private final List<BloomFilterManagerListener<? super T, C>> listeners;
focal_class.type: List<BloomFilterManagerListener<? super T, C>>
focal_class.var_name: listeners
focal_class.declarator: filterMap
focal_class.modifier: private final
focal_class.original_string: private final ConcurrentHashMap<String, T> filterMap;
focal_class.type: ConcurrentHashMap<String, T>
focal_class.var_name: filterMap
focal_class.declarator: factory
focal_class.modifier: private final
focal_class.original_string: private final BloomFilterFactory<? extends T, ? super C> factory;
focal_class.type: BloomFilterFactory<? extends T, ? super C>
focal_class.var_name: factory
focal_class.declarator: filterMapLock = new ReentrantLock()
focal_class.modifier: private final
focal_class.original_string: private final Lock filterMapLock = new ReentrantLock();
focal_class.type: Lock
focal_class.var_name: filterMapLock
focal_class.file: filter-service-core/src/main/java/cn/leancloud/filter/service/BloomFilterManagerImpl.java
focal_class.identifier: BloomFilterManagerImpl
focal_class.interfaces: implements BloomFilterManager<T, C>,
          Listenable<BloomFilterManagerListener<? super T, C>>
focal_class.class_method_signature: BloomFilterManagerImpl.BloomFilterManagerImpl(BloomFilterFactory<? extends T, ? super C> factory)
focal_class.full_signature:   BloomFilterManagerImpl(BloomFilterFactory<? extends T, ? super C> factory)
focal_class.identifier: BloomFilterManagerImpl
focal_class.parameters: (BloomFilterFactory<? extends T, ? super C> factory)
focal_class.signature:  BloomFilterManagerImpl(BloomFilterFactory<? extends T, ? super C> factory)
focal_class.class_method_signature: BloomFilterManagerImpl.createFilter(String name, C config, boolean overwrite)
focal_class.full_signature: @Override public CreateFilterResult<T> createFilter(String name, C config, boolean overwrite)
focal_class.identifier: createFilter
focal_class.modifiers: @Override public
focal_class.parameters: (String name, C config, boolean overwrite)
focal_class.return: CreateFilterResult<T>
focal_class.signature: CreateFilterResult<T> createFilter(String name, C config, boolean overwrite)
focal_class.class_method_signature: BloomFilterManagerImpl.addFilters(Iterable<FilterRecord<? extends T>> filters)
focal_class.full_signature: @Override public void addFilters(Iterable<FilterRecord<? extends T>> filters)
focal_class.identifier: addFilters
focal_class.modifiers: @Override public
focal_class.parameters: (Iterable<FilterRecord<? extends T>> filters)
focal_class.return: void
focal_class.signature: void addFilters(Iterable<FilterRecord<? extends T>> filters)
focal_class.class_method_signature: BloomFilterManagerImpl.getFilter(String name)
focal_class.full_signature: @Nullable @Override public T getFilter(String name)
focal_class.identifier: getFilter
focal_class.modifiers: @Nullable @Override public
focal_class.parameters: (String name)
focal_class.return: T
focal_class.signature: T getFilter(String name)
focal_class.class_method_signature: BloomFilterManagerImpl.ensureGetValidFilter(String name)
focal_class.full_signature: @Override public T ensureGetValidFilter(String name)
focal_class.identifier: ensureGetValidFilter
focal_class.modifiers: @Override public
focal_class.parameters: (String name)
focal_class.return: T
focal_class.signature: T ensureGetValidFilter(String name)
focal_class.class_method_signature: BloomFilterManagerImpl.getAllFilterNames()
focal_class.full_signature: @Override public List<String> getAllFilterNames()
focal_class.identifier: getAllFilterNames
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<String>
focal_class.signature: List<String> getAllFilterNames()
focal_class.class_method_signature: BloomFilterManagerImpl.size()
focal_class.full_signature: @Override public int size()
focal_class.identifier: size
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int size()
focal_class.class_method_signature: BloomFilterManagerImpl.remove(String name)
focal_class.full_signature: @Override public void remove(String name)
focal_class.identifier: remove
focal_class.modifiers: @Override public
focal_class.parameters: (String name)
focal_class.return: void
focal_class.signature: void remove(String name)
focal_class.class_method_signature: BloomFilterManagerImpl.remove(String name, T filter)
focal_class.full_signature: @Override public void remove(String name, T filter)
focal_class.identifier: remove
focal_class.modifiers: @Override public
focal_class.parameters: (String name, T filter)
focal_class.return: void
focal_class.signature: void remove(String name, T filter)
focal_class.class_method_signature: BloomFilterManagerImpl.iterator()
focal_class.full_signature: @Override public Iterator<FilterRecord<T>> iterator()
focal_class.identifier: iterator
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Iterator<FilterRecord<T>>
focal_class.signature: Iterator<FilterRecord<T>> iterator()
focal_class.class_method_signature: BloomFilterManagerImpl.addListener(BloomFilterManagerListener<? super T, C> listener)
focal_class.full_signature: @Override public void addListener(BloomFilterManagerListener<? super T, C> listener)
focal_class.identifier: addListener
focal_class.modifiers: @Override public
focal_class.parameters: (BloomFilterManagerListener<? super T, C> listener)
focal_class.return: void
focal_class.signature: void addListener(BloomFilterManagerListener<? super T, C> listener)
focal_class.class_method_signature: BloomFilterManagerImpl.removeListener(BloomFilterManagerListener<? super T, C> listener)
focal_class.full_signature: @Override public boolean removeListener(BloomFilterManagerListener<? super T, C> listener)
focal_class.identifier: removeListener
focal_class.modifiers: @Override public
focal_class.parameters: (BloomFilterManagerListener<? super T, C> listener)
focal_class.return: boolean
focal_class.signature: boolean removeListener(BloomFilterManagerListener<? super T, C> listener)
focal_class.class_method_signature: BloomFilterManagerImpl.notifyBloomFilterCreated(String name, C config, T filter)
focal_class.full_signature: private void notifyBloomFilterCreated(String name, C config, T filter)
focal_class.identifier: notifyBloomFilterCreated
focal_class.modifiers: private
focal_class.parameters: (String name, C config, T filter)
focal_class.return: void
focal_class.signature: void notifyBloomFilterCreated(String name, C config, T filter)
focal_class.class_method_signature: BloomFilterManagerImpl.notifyBloomFilterRemoved(String name, T filter)
focal_class.full_signature: private void notifyBloomFilterRemoved(String name, T filter)
focal_class.identifier: notifyBloomFilterRemoved
focal_class.modifiers: private
focal_class.parameters: (String name, T filter)
focal_class.return: void
focal_class.signature: void notifyBloomFilterRemoved(String name, T filter)
focal_class.class_method_signature: BloomFilterManagerImpl.notifyListeners(Consumer<BloomFilterManagerListener<? super T, C>> consumer)
focal_class.full_signature: private void notifyListeners(Consumer<BloomFilterManagerListener<? super T, C>> consumer)
focal_class.identifier: notifyListeners
focal_class.modifiers: private
focal_class.parameters: (Consumer<BloomFilterManagerListener<? super T, C>> consumer)
focal_class.return: void
focal_class.signature: void notifyListeners(Consumer<BloomFilterManagerListener<? super T, C>> consumer)
focal_method.body: @Override
      public int size() {
          return filterMap.size();
      }
focal_method.class_method_signature: BloomFilterManagerImpl.size()
focal_method.full_signature: @Override public int size()
focal_method.identifier: size
focal_method.invocations: size
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: int
focal_method.signature: int size()