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






posted @ 2016-09-01 10:00  大风起兮云飞扬++  阅读(151)  评论(0编辑  收藏  举报