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

Method isEmpty

src/main/java/com/opslab/helper/StringHelper.java:29–31  ·  view source on GitHub ↗

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

(String str)

Source from the content-addressed store, hash-verified

27 * @return 是否有效
28 */
29 public static boolean isEmpty(String str) {
30 return str == null || str.equals("");
31 }
32
33 /**
34 * 判断字符串不为空

Callers 7

getOrderByMethod · 0.95
getOrderByMethod · 0.95
full2HalfMethod · 0.95
Half2FullMethod · 0.95
leftMethod · 0.95
rightMethod · 0.95
hasLengthMethod · 0.45

Calls 1

equalsMethod · 0.80

Tested by

no test coverage detected