MCPcopy 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

testIsValidMethod · 0.95
testIsValid1Method · 0.95
testIsValid2Method · 0.95
testSwithMethod · 0.95
bytesToCharsMethod · 0.95
joinMethod · 0.95
intersectionMethod · 0.95
subtractMethod · 0.95
hasDeclaredPropertyMethod · 0.95
hasPropertyFilterMethod · 0.95
getPropertyFilterMethod · 0.95

Calls 2

equalsMethod · 0.80
isEmptyMethod · 0.45

Tested by 4

testIsValidMethod · 0.76
testIsValid1Method · 0.76
testIsValid2Method · 0.76
testSwithMethod · 0.76