public static boolean isNumeric(String str) {
        if (isBlank(str)) {
            return false;
        } else {
            int sz = str.length();

            for (int i = 0; i < sz; ++i) {
                if (!Character.isDigit(str.charAt(i))) {
                    return false;
                }
            }

            return true;
        }
    }
Created by zhangg on 2016/7/14 21:07.

@author <a href=mailto:zhanggeng.zg@antfin.com>GengZhang</a>
src/main/java/com/alipay/remoting/util/StringUtils.java