code: public static boolean isValidDouble(@Nullable final String doubleStr) {
          if (StringUtils.isBlank(doubleStr)) {
              return false;
          }
          final String stripedDouble = StringUtils.strip(doubleStr);
          try {
              NumberUtils.createDouble(stripedDouble);
              return true;
          } catch (NumberFormatException e) {
              return false;
          }
      }
docs: Given an double string, it checks if it's a valid double (based on apaches NumberUtils.createDouble)
  
  @param doubleStr the double string to check
  @return true if it's valid, otherwise false