MCPcopy Create free account
hub / github.com/Raxcl/RBlog / isEmpty

Method isEmpty

blog-api/src/main/java/cn/raxcl/util/StringUtils.java:19–26  ·  view source on GitHub ↗

判断字符串是否为空 @param str 待校验字符串 @return boolean

(String... str)

Source from the content-addressed store, hash-verified

17 * @return boolean
18 */
19 public static boolean isEmpty(String... str) {
20 for (String s : str) {
21 if (s == null || "".equals(s.trim())) {
22 return true;
23 }
24 }
25 return false;
26 }
27
28 /**
29 * 判断字符串中是否包含特殊字符

Callers 13

searchBlogMethod · 0.95
updateCommentMethod · 0.95
getResultMethod · 0.95
getResultMethod · 0.95
checkCommentMethod · 0.95
checkTokenMethod · 0.95
postCommentMethod · 0.95
getResultMethod · 0.95
getCityInfoMethod · 0.95
judgeCommentStateMethod · 0.95
setVisitorCommentMethod · 0.95
getContentMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected