Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/0opslab/opslabJutil
/ valid
Method
valid
src/main/java/com/opslab/util/CheckUtil.java:35–37 ·
view source on GitHub ↗
判断字符串有效性
(String src)
Source
from the content-addressed store, hash-verified
33
* 判断字符串有效性
34
*/
35
public
static
final
boolean valid(String src) {
36
return
!(src == null ||
""
.equals(src.trim()));
37
}
38
39
/**
40
* 判断一组字符串是否有效
Callers
15
testIsValid
Method · 0.95
testIsValid1
Method · 0.95
testIsValid2
Method · 0.95
testSwith
Method · 0.95
bytesToChars
Method · 0.95
join
Method · 0.95
intersection
Method · 0.95
subtract
Method · 0.95
hasDeclaredProperty
Method · 0.95
hasPropertyFilter
Method · 0.95
getPropertyFilter
Method · 0.95
getPropertyFilterPeaceful
Method · 0.95
Calls
2
equals
Method · 0.80
isEmpty
Method · 0.45
Tested by
4
testIsValid
Method · 0.76
testIsValid1
Method · 0.76
testIsValid2
Method · 0.76
testSwith
Method · 0.76