class StringTools {

    public static int parseInteger(String intStr) {
        if (intStr == null) {
            return MotanConstants.DEFAULT_INT_VALUE;
        }
        try {
            return Integer.parseInt(intStr);
        } catch (NumberFormatException e) {
            return MotanConstants.DEFAULT_INT_VALUE;
        }
    }

    public static String urlEncode(String value) {
        if (StringUtils.isEmpty(value)) {
            return "";
        }
        try {
            return URLEncoder.encode(value, MotanConstants.DEFAULT_CHARACTER);
        } catch (UnsupportedEncodingException e) {
            throw new RuntimeException(e.getMessage(), e);
        }
    }

    public static String urlDecode(String value) {<FILL_FUNCTION_BODY>}

    public static String toQueryString(Map<String, String> ps) {
        StringBuilder buf = new StringBuilder();
        if (ps != null && ps.size() > 0) {
            for (Map.Entry<String, String> entry : new TreeMap<>(ps).entrySet()) {
                String key = entry.getKey();
                String value = entry.getValue();
                if (key != null && key.length() > 0 && value != null && value.length() > 0) {
                    if (buf.length() > 0) {
                        buf.append("&");
                    }
                    buf.append(key);
                    buf.append("=");
                    buf.append(value);
                }
            }
        }
        return buf.toString();
    }

    // 切分string，去重去空
    public static Set<String> splitSet(String str, String regex) {
        Set<String> result = new HashSet<>();
        if (str != null) {
            String[] strings = str.split(regex);
            for (String s : strings) {
                if (StringUtils.isNotBlank(s)) {
                    result.add(s.trim());
                }
            }
        }
        return result;
    }

    /**
     * join strings，skip blank strings and not trim the strings
     */
    public static String joinNotBlank(String separator, String... strings) {
        return Arrays.stream(strings).filter(StringUtils::isNotBlank).collect(Collectors.joining(separator));
    }
}

        if (StringUtils.isBlank(value)) {
            return "";
        }
        try {
            return URLDecoder.decode(value, MotanConstants.DEFAULT_CHARACTER);
        } catch (UnsupportedEncodingException e) {
            throw new RuntimeException(e.getMessage(), e);
        }
    
<no_super_class>