MCPcopy Create free account
hub / github.com/SeanDragon/protools / isEmpty

Method isEmpty

common/src/main/java/pro/tools/data/text/ToolStr.java:25–27  ·  view source on GitHub ↗

判断字符串是否为null或长度为0 @param s 待校验字符串 @return true: 空 false: 不为空

(CharSequence s)

Source from the content-addressed store, hash-verified

23 * @return {@code true}: 空<br> {@code false}: 不为空
24 */
25 public static boolean isEmpty(CharSequence s) {
26 return s == null || s.length() == 0;
27 }
28
29 /**
30 * 判断字符串是否为null或全为空格

Callers 7

toDBCMethod · 0.95
toSBCMethod · 0.95
zipFileMethod · 0.95
unzipFileByKeywordMethod · 0.95
convertRequestMethod · 0.45
channelRead0Method · 0.45
getTypeMethod · 0.45

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected