code: public static boolean isPrimitive(Class<?> type) {
  		if (type.isPrimitive()) {
  			return true;
  		}
  		// check if wrapper;
  		if (PRIMITIVES_TO_WRAPPERS.values().contains(type)) {
  			return true;
  		}
  		return false;
  	}
docs: Checks if is primitive.
  
  @param type the type
  @return true, if is primitive