美文网首页
StringUtils 的用法

StringUtils 的用法

作者: _大风起兮云飞扬_ | 来源:发表于2017-02-13 21:25 被阅读13次

org.apache.commons.lang.StringUtils

public static boolean isEmpty(String str)

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

public static boolean isBlank(String str)

判断某字符串是否为blank,标准是 null == str 或 str.length() == 0 或 由一系列的空格组成,比如" "
这里有详细的说明:
http://blog.sina.com.cn/s/blog_4550f3ca0100qrsd.html

相关文章

网友评论

      本文标题:StringUtils 的用法

      本文链接:https://www.haomeiwen.com/subject/mrvtwttx.html