/** * 将开头小字母转为大写字母 * * @param name * @return */
    private String upperCapital(String name) {
   
        String first = name.substring(0, 1);
        String tail = name.substring(1);
        return first.toUpperCase() + tail;
    }

    /** * 判断是否是包装类 * * @param clz * @return */
    public boolean isWrapClass(Class clz) {
   
        try {
   
            return ((Class) clz.getField("TYPE").get(null)).isPrimitive();
        } catch (Exception e) {
   
            return false;
        }
    }