public static boolean isJavaBuiltinDataType(Class clazz){
  if (clazz == null) {
    return true;
  }
  Class clazzBoxed=getBoxedType(clazz);
  if (isNumeric(clazzBoxed)) {
    return true;
  }
  if (isBoolean(clazzBoxed)) {
    return true;
  }
  if (clazzBoxed.equals(String.class)) {
    return true;
  }
  if ((clazzBoxed.equals(char.class)) || (clazzBoxed.equals(Character.class))) {
    return true;
  }
  if (clazzBoxed.equals(void.class)) {
    return true;
  }
  return false;
}

public static boolean isJavaBuiltinDataType ( Class clazz ) { if ( clazz == null ) { return true ; } Class clazzBoxed = getBoxedType ( clazz ) ; if ( isNumeric ( clazzBoxed ) ) { return true ; } if ( isBoolean ( clazzBoxed ) ) { return true ; } if ( clazzBoxed . equals ( String . class ) ) { return true ; } if ( ( clazzBoxed . equals ( char . class ) ) || ( clazzBoxed . equals ( Character . class ) ) ) { return true ; } if ( clazzBoxed . equals ( void . class ) ) { return true ; } return false ; }
returns true if the class passed in is a java built - in data type ( primitive or wrapper ) including string and ' null ' .
