code: public static boolean isPrimitive(Class<?> aClass)
  	{
  		if(aClass == null)
  			return false;
  		
  		String className = aClass.getName();
  		return className.matches("(float|char|short|double|int|long|byte|boolean|(java.lang.(Long|Integer|String|Float|Double|Short|Byte|Boolean)))");
  		
  	}
docs: --------------------------------------------------------