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

Method isSpace

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

判断字符串是否为null或全为空格 @param s 待校验字符串 @return true: null或全空格 false: 不为null且不全空格

(String s)

Source from the content-addressed store, hash-verified

35 * @return {@code true}: null或全空格<br> {@code false}: 不为null且不全空格
36 */
37 public static boolean isSpace(String s) {
38 return (s == null || s.trim().length() == 0);
39 }
40
41
42 /**

Callers 14

hexString2BytesMethod · 0.95
inputStream2StringMethod · 0.95
string2InputStreamMethod · 0.95
outputStream2StringMethod · 0.95
string2OutputStreamMethod · 0.95
getFileByPathMethod · 0.95
renameMethod · 0.95
getFileMD5ToStringMethod · 0.95
getFileMD5Method · 0.95
getDirNameMethod · 0.95
getFileNameMethod · 0.95

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected