public static Class<?> getUnBoxType(Class<?> boxType) {
        if (boxType == null) {
            return null;
        }
        if (boxType == Byte.class) {
            return byte.class;
        } else if (boxType == Short.class) {
            return short.class;
        } else if (boxType == Integer.class) {
            return int.class;
        } else if (boxType == Long.class) {
            return long.class;
        } else if (boxType == Boolean.class) {
            return boolean.class;
        } else if (boxType == Float.class) {
            return float.class;
        } else {
            return boxType;
        }
    }
@author Robert HG (254963746@qq.com) on 4/20/16.
lts-core/src/main/java/com/github/ltsopensource/core/commons/utils/PrimitiveTypeUtils.java