StringUtils 的用法

1、public static boolean isEmpty(String str)

判断某字符串是否为empty,标准是 null == str 或 str.length() == 0

2、public static boolean isBlank(String str)

判断某字符串是否为blank,标准是null == str 或 str.length() == 0 或 由一系列的空格组成"    "


这里有详细的说明:

http://blog.sina.com.cn/s/blog_4550f3ca0100qrsd.html






原文地址:https://www.cnblogs.com/sdsunjing/p/5828576.html