判断字符串是否为null或全为空格 @param s 待校验字符串 @return true: null或全空格 false: 不为null且不全空格
(String s)
| 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 | /** |
no test coverage detected