public static boolean isBasicType ( Class < ? > clazz ) { return ( clazz == null ) ? false : ( clazz . isPrimitive ( ) || clazz . equals ( String . class ) || clazz . equals ( Long . class ) || clazz . equals ( Integer . class ) || clazz . equals ( Boolean . class ) || clazz . equals ( Byte . class ) || clazz . equals ( Short . class ) || clazz . equals ( Float . class ) || clazz . equals ( Double . class ) || clazz . equals ( Character . class ) ) ; }
Checks if a class is primitive String or a primitive wrapper .