code: public final static boolean isPrimitive(Object object) {
          if (object instanceof String || object instanceof Number || object instanceof Boolean
                  || object instanceof Character) {
              return true;
          }
          return false;
      }
docs: Checks if is primitive.
  
  @param object
  the object
  @return true, if is primitive