@@ -0,0 +1,1706 @@
+package com.andyadc.scaffold.util;%0A%0A/**%0A * A string utility class that manipulates string.%0A *%0A * @author andaicheng%0A */%0Apublic class StringUtil %7B%0A%0A    /**%0A     * %3Cp%3EChecks if a String is empty (%22%22) or null.%3C/p%3E%0A     * %3Cp%3E%0A     * %3Cpre%3E%0A     * StringUtil.isEmpty(null)      = true%0A     * StringUtil.isEmpty(%22%22)        = true%0A     * StringUtil.isEmpty(%22 %22)       = false%0A     * StringUtil.isEmpty(%22bob%22)     = false%0A     * StringUtil.isEmpty(%22  bob  %22) = false%0A     * %3C/pre%3E%0A     *%0A     * @param str the String to check, may be null%0A     * @return %3Ccode%3Etrue%3C/code%3E if the String is empty or null%0A     */%0A    public static boolean isEmpty(String str) %7B%0A        return str == null %7C%7C str.length() == 0;%0A    %7D%0A%0A    public static boolean isNotEmpty(String str) %7B%0A        return !isEmpty(str);%0A    %7D%0A%0A    /**%0A     * %3Cp%3EChecks if a String is whitespace, empty (%22%22) or null.%3C/p%3E%0A     * %3Cp%3E%0A     * %3Cpre%3E%0A     * StringUtil.isBlank(null)      = true%0A     * StringUtil.isBlank(%22%22)        = true%0A     * StringUtil.isBlank(%22 %22)       = true%0A     * StringUtil.isBlank(%22bob%22)     = false%0A     * StringUtil.isBlank(%22  bob  %22) = false%0A     * %3C/pre%3E%0A     *%0A     * @param str the String to check, may be null%0A     * @return %3Ccode%3Etrue%3C/code%3E if the String is null, empty or whitespace%0A     */%0A    public static boolean isBlank(String str) %7B%0A        int strLen;%0A        if (str == null %7C%7C (strLen = str.length()) == 0) %7B%0A            return true;%0A        %7D%0A        for (int i = 0; i %3C strLen; i++) %7B%0A            if (!Character.isWhitespace(str.charAt(i))) %7B%0A                return false;%0A            %7D%0A        %7D%0A        return true;%0A    %7D%0A%0A    public static boolean isNotBlank(String str) %7B%0A        return !isBlank(str);%0A    %7D%0A%7D%0A

add utility StringUtil