Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
getOrderBy
Method · 0.95
getOrderBy
Method · 0.95
full2Half
Method · 0.95
Half2Full
Method · 0.95
left
Method · 0.95
right
Method · 0.95
hasLength
Method · 0.45
Calls
1
equals
Method · 0.80
Tested by
no test coverage detected