Checks if a String is empty ("") or null. StringUtils.isEmpty(null) = true StringUtils.isEmpty("") = true StringUtils.isEmpty(" ") = false StringUtils.isEmpty("bob") = false StringUtils.isEmpty(" bob ") = false NOTE: This method changed in Lang vers
(String str)
| 240 | * @return <code>true</code> if the String is empty or null |
| 241 | */ |
| 242 | public static boolean isEmpty(String str) { |
| 243 | return str == null || str.length() == 0; |
| 244 | } |
| 245 | |
| 246 | /** |
| 247 | * <p> |
no test coverage detected