public static boolean isPrimitiveOrWrapper(Class<?> clazz){
  Assert.notNull(clazz,"Class must not be null");
  return (clazz.isPrimitive() || isPrimitiveWrapper(clazz));
}

public static boolean isPrimitiveOrWrapper ( Class < ? > clazz ) { Assert . notNull ( clazz , "Class must not be null" ) ; return ( clazz . isPrimitive ( ) || isPrimitiveWrapper ( clazz ) ) ; }
check if the given class represents a primitive ( i . e . boolean , byte , char , short , int , long , float , or double ) or a primitive wrapper ( i . e . boolean , byte , character , short , integer , long , float , or double ) .
