Java实用类库之StringUtils
2021-07-15 10:05
阅读:919
标签:not repeat cti ftp 补充 实用 .com 截取 ons
org.apache.commons.lang.StringUtils
作为jdk中lang包的补充
检查CharSequence是否为空,null或者空格
CharSequence (CharBuffer, Segment, String, StringBuffer, StringBuilder)
- isBlank(CharSequence) 可以检查空,null和空格
- isEmpty(CharSequence) 只能检查空和null
- 还有isNotBlank(cs)和isNotEmpt(cs)
字符串截取
Substring/Left/Right/Mid - null-safe substring extractions
字符串补全
LeftPad/RightPad/Center/Repeat - pads a String
参考
- doc:https://commons.apache.org/proper/commons-lang/apidocs/index.html?org/apache/commons/lang3/StringUtils.html
- apache下载:https://commons.apache.org/proper/commons-lang/
Java实用类库之StringUtils
标签:not repeat cti ftp 补充 实用 .com 截取 ons
原文地址:https://www.cnblogs.com/52liming/p/9536974.html
上一篇:python字符编码
评论
亲,登录后才可以留言!