test_class.file: filter-service-core/src/test/java/cn/leancloud/filter/service/AbstractBloomFilterConfigTest.java
test_class.identifier: AbstractBloomFilterConfigTest
test_case.body: @Test
      public void testGetAndSetInvalidExpectedInsertions() {
          final int invalidExpectedInsertions = -1 * Math.abs(ThreadLocalRandom.current().nextInt());
          final TestingBloomFilterConfig config = new TestingBloomFilterConfig();
  
          assertThatThrownBy(() -> config.setExpectedInsertions(invalidExpectedInsertions))
                  .isInstanceOf(BadParameterException.class)
                  .hasMessageContaining("invalid parameter");
      }
test_case.class_method_signature: AbstractBloomFilterConfigTest.testGetAndSetInvalidExpectedInsertions()
test_case.full_signature: @Test public void testGetAndSetInvalidExpectedInsertions()
test_case.identifier: testGetAndSetInvalidExpectedInsertions
test_case.invocations: abs nextInt current hasMessageContaining isInstanceOf assertThatThrownBy setExpectedInsertions
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetAndSetInvalidExpectedInsertions()
focal_class.declarator: expectedInsertions
focal_class.modifier: private
focal_class.original_string: private int expectedInsertions;
focal_class.type: int
focal_class.var_name: expectedInsertions
focal_class.declarator: fpp
focal_class.modifier: private
focal_class.original_string: private double fpp;
focal_class.type: double
focal_class.var_name: fpp
focal_class.file: filter-service-core/src/main/java/cn/leancloud/filter/service/AbstractBloomFilterConfig.java
focal_class.identifier: AbstractBloomFilterConfig
focal_class.interfaces: implements BloomFilterConfig<T>, Cloneable
focal_class.class_method_signature: AbstractBloomFilterConfig.AbstractBloomFilterConfig()
focal_class.full_signature:   AbstractBloomFilterConfig()
focal_class.identifier: AbstractBloomFilterConfig
focal_class.parameters: ()
focal_class.signature:  AbstractBloomFilterConfig()
focal_class.class_method_signature: AbstractBloomFilterConfig.AbstractBloomFilterConfig(int expectedInsertions, double fpp)
focal_class.full_signature:   AbstractBloomFilterConfig(int expectedInsertions, double fpp)
focal_class.identifier: AbstractBloomFilterConfig
focal_class.parameters: (int expectedInsertions, double fpp)
focal_class.signature:  AbstractBloomFilterConfig(int expectedInsertions, double fpp)
focal_class.class_method_signature: AbstractBloomFilterConfig.expectedInsertions()
focal_class.full_signature: public int expectedInsertions()
focal_class.identifier: expectedInsertions
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int expectedInsertions()
focal_class.class_method_signature: AbstractBloomFilterConfig.fpp()
focal_class.full_signature: public double fpp()
focal_class.identifier: fpp
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double fpp()
focal_class.class_method_signature: AbstractBloomFilterConfig.setExpectedInsertions(int expectedInsertions)
focal_class.full_signature: @SuppressWarnings("unchecked") @Override public T setExpectedInsertions(int expectedInsertions)
focal_class.identifier: setExpectedInsertions
focal_class.modifiers: @SuppressWarnings("unchecked") @Override public
focal_class.parameters: (int expectedInsertions)
focal_class.return: T
focal_class.signature: T setExpectedInsertions(int expectedInsertions)
focal_class.class_method_signature: AbstractBloomFilterConfig.setFpp(double fpp)
focal_class.full_signature: @SuppressWarnings("unchecked") @Override public T setFpp(double fpp)
focal_class.identifier: setFpp
focal_class.modifiers: @SuppressWarnings("unchecked") @Override public
focal_class.parameters: (double fpp)
focal_class.return: T
focal_class.signature: T setFpp(double fpp)
focal_class.class_method_signature: AbstractBloomFilterConfig.equals(Object o)
focal_class.full_signature: @Override public boolean equals(Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(Object o)
focal_class.class_method_signature: AbstractBloomFilterConfig.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: AbstractBloomFilterConfig.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: AbstractBloomFilterConfig.self()
focal_class.full_signature: protected abstract T self()
focal_class.identifier: self
focal_class.modifiers: protected abstract
focal_class.parameters: ()
focal_class.return: T
focal_class.signature: T self()
focal_method.body: @SuppressWarnings("unchecked")
      @Override
      public T setExpectedInsertions(int expectedInsertions) {
          checkParameter("expectedInsertions",
                  expectedInsertions > 0,
                  "expected: > 0, actual: %s",
                  expectedInsertions);
  
          this.expectedInsertions = expectedInsertions;
          return self();
      }
focal_method.class_method_signature: AbstractBloomFilterConfig.setExpectedInsertions(int expectedInsertions)
focal_method.full_signature: @SuppressWarnings("unchecked") @Override public T setExpectedInsertions(int expectedInsertions)
focal_method.identifier: setExpectedInsertions
focal_method.invocations: checkParameter self
focal_method.modifiers: @SuppressWarnings("unchecked") @Override public
focal_method.parameters: (int expectedInsertions)
focal_method.return: T
focal_method.signature: T setExpectedInsertions(int expectedInsertions)