code: public static boolean isNumberObj(Object type) {
          try {
              Double.valueOf(type + "");
          } catch (NumberFormatException e) {
              return false;
          }
          return true;
      }
docs: Is number obj boolean.
  
  @param type the type
  @return the boolean