private static <T> boolean getIntParamValue(T paramCntr,
            WebFieldDef fieldDef, boolean required,
            boolean hasDefVal, int defValue,
            boolean hasMinVal, int minValue,
            boolean hasMaxVal, int maxValue,
            StringBuilder sBuffer, ProcessResult result) {
        if (!getStringParamValue(paramCntr, fieldDef,
                required, null, sBuffer, result)) {
            return result.isSuccess();
        }
        if (fieldDef.isCompFieldType()) {
            Set<Integer> tgtValueSet = new HashSet<>();
            Set<String> valItemSet = (Set<String>) result.getRetData();
            if (valItemSet.isEmpty()) {
                if (hasDefVal) {
                    tgtValueSet.add(defValue);
                }
                result.setSuccResult(tgtValueSet);
                return result.isSuccess();
            }
            for (String itemVal : valItemSet) {
                if (!checkIntValueNorms(fieldDef, itemVal,
                        hasMinVal, minValue, hasMaxVal, maxValue, sBuffer, result)) {
                    return result.isSuccess();
                }
                tgtValueSet.add((Integer) result.getRetData());
            }
            result.setSuccResult(tgtValueSet);
        } else {
            String paramValue = (String) result.getRetData();
            if (paramValue == null) {
                if (hasDefVal) {
                    result.setSuccResult(defValue);
                }
                return result.isSuccess();
            }
            checkIntValueNorms(fieldDef, paramValue,
                    hasMinVal, minValue, hasMaxVal, maxValue, sBuffer, result);
        }
        return result.isSuccess();
    }
Parse the parameter value from an object value to a integer value

@param paramCntr  parameter container object
@param fieldDef   the parameter field definition
@param required   a boolean value represent whether the parameter is must required
@param defValue   a default value returned if the field not exist
@param minValue   min value required
@param maxValue   max value allowed
@param sBuffer     string buffer
@param result     process result of parameter value
@return process result
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/common/utils/WebParameterUtils.java