test_class.file: query/src/test/java/io/keen/client/java/PercentileTest.java
test_class.identifier: PercentileTest
test_class.superclass: extends KeenQueryTestBase
test_case.body: @Test(expected = IllegalArgumentException.class)
      public void testPercentile_TooManyDecimalPlaces2() {
          Percentile.createStrict(0.01f);
      }
test_case.class_method_signature: PercentileTest.testPercentile_TooManyDecimalPlaces2()
test_case.full_signature: @Test(expected = IllegalArgumentException.class) public void testPercentile_TooManyDecimalPlaces2()
test_case.identifier: testPercentile_TooManyDecimalPlaces2
test_case.invocations: createStrict
test_case.modifiers: @Test(expected = IllegalArgumentException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testPercentile_TooManyDecimalPlaces2()
focal_class.declarator: MIN_PERCENTILE = 0.01
focal_class.modifier: private static final
focal_class.original_string: private static final double MIN_PERCENTILE = 0.01;
focal_class.type: double
focal_class.var_name: MIN_PERCENTILE
focal_class.declarator: MAX_PERCENTILE = 100.00
focal_class.modifier: private static final
focal_class.original_string: private static final double MAX_PERCENTILE = 100.00;
focal_class.type: double
focal_class.var_name: MAX_PERCENTILE
focal_class.declarator: percentile
focal_class.modifier: private final
focal_class.original_string: private final Double percentile;
focal_class.type: Double
focal_class.var_name: percentile
focal_class.file: query/src/main/java/io/keen/client/java/Percentile.java
focal_class.identifier: Percentile
focal_class.class_method_signature: Percentile.Percentile(double percentile)
focal_class.full_signature: private  Percentile(double percentile)
focal_class.identifier: Percentile
focal_class.modifiers: private
focal_class.parameters: (double percentile)
focal_class.signature:  Percentile(double percentile)
focal_class.class_method_signature: Percentile.asDouble()
focal_class.full_signature: public Double asDouble()
focal_class.identifier: asDouble
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Double
focal_class.signature: Double asDouble()
focal_class.class_method_signature: Percentile.createStrict(double percentile)
focal_class.full_signature: public static Percentile createStrict(double percentile)
focal_class.identifier: createStrict
focal_class.modifiers: public static
focal_class.parameters: (double percentile)
focal_class.return: Percentile
focal_class.signature: Percentile createStrict(double percentile)
focal_class.class_method_signature: Percentile.createStrict(Number percentile)
focal_class.full_signature: public static Percentile createStrict(Number percentile)
focal_class.identifier: createStrict
focal_class.modifiers: public static
focal_class.parameters: (Number percentile)
focal_class.return: Percentile
focal_class.signature: Percentile createStrict(Number percentile)
focal_class.class_method_signature: Percentile.createCoerced(double percentile)
focal_class.full_signature: public static Percentile createCoerced(double percentile)
focal_class.identifier: createCoerced
focal_class.modifiers: public static
focal_class.parameters: (double percentile)
focal_class.return: Percentile
focal_class.signature: Percentile createCoerced(double percentile)
focal_class.class_method_signature: Percentile.createCoerced(Number percentile)
focal_class.full_signature: public static Percentile createCoerced(Number percentile)
focal_class.identifier: createCoerced
focal_class.modifiers: public static
focal_class.parameters: (Number percentile)
focal_class.return: Percentile
focal_class.signature: Percentile createCoerced(Number percentile)
focal_class.class_method_signature: Percentile.getNumDecimalPlaces(double doubleVal)
focal_class.full_signature: private static int getNumDecimalPlaces(double doubleVal)
focal_class.identifier: getNumDecimalPlaces
focal_class.modifiers: private static
focal_class.parameters: (double doubleVal)
focal_class.return: int
focal_class.signature: int getNumDecimalPlaces(double doubleVal)
focal_class.class_method_signature: Percentile.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: Percentile.equals(Object obj)
focal_class.full_signature: @Override public boolean equals(Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(Object obj)
focal_class.class_method_signature: Percentile.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_method.body: public static Percentile createStrict(double percentile) {
          if (MIN_PERCENTILE > percentile || MAX_PERCENTILE < percentile) {
              throw new IllegalArgumentException("The 'percentile' must be in the range (0, 100].");
          }
  
          if (getNumDecimalPlaces(percentile) > 2) {
              throw new IllegalArgumentException("The 'percentile' has over two decimal places.");
          }
  
          return new Percentile(percentile);
      }
focal_method.class_method_signature: Percentile.createStrict(double percentile)
focal_method.full_signature: public static Percentile createStrict(double percentile)
focal_method.identifier: createStrict
focal_method.invocations: getNumDecimalPlaces
focal_method.modifiers: public static
focal_method.parameters: (double percentile)
focal_method.return: Percentile
focal_method.signature: Percentile createStrict(double percentile)