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