code: public static <T extends Number> double divide(final T dividend, final T divisor) {
  
          if (JudgeUtils.hasNull(dividend, divisor)) {
              return 0d;
          }
          if (JudgeUtils.equals(dividend, divisor) || divisor.doubleValue() == 0) {
              return 1d;
          }
          return dividend.doubleValue() / divisor.doubleValue();
      }
docs: Returns a double average number by given dividend and divisor.<br>
  Returns 0 if dividend == null or divisor == null.<br>
  Returns 1 if dividend == divisor or divisor == 0.
  
  @param dividend
  number to be handled.
  @param divisor
  number to be handled.
  @return a double average number by given dividend and divisor.