MCPcopy Create free account
hub / github.com/0opslab/opslabJutil / isEmpty

Method isEmpty

src/main/java/com/opslab/util/StringUtil.java:24–26  ·  view source on GitHub ↗

判断是否是空字符串 null和"" 都返回 true @param str 判断的字符串 @return 是否有效

(String str)

Source from the content-addressed store, hash-verified

22 * @return 是否有效
23 */
24 public static boolean isEmpty(String str) {
25 return str == null || str.equals("");
26 }
27
28 /**
29 * 把string array or list用给定的符号symbol连接成一个字符串

Callers 15

parseQueryMethod · 0.95
httpParseQueryMethod · 0.95
escapeMethod · 0.95
unescapeMethod · 0.95
unhtmlMethod · 0.95
htmlMethod · 0.95
ltrimMethod · 0.95
rtrimMethod · 0.95
leftMethod · 0.95
rightMethod · 0.95
full2HalfMethod · 0.95
Half2FullMethod · 0.95

Calls 1

equalsMethod · 0.80

Tested by

no test coverage detected