Returns true if the given string is null or is the empty string. Consider normalizing your string references with #nullToEmpty. If you do, you can use String#isEmpty() instead of this method, and you won't need special null-safe forms of methods like {@link String#toUpper
(@Nullable String string)
| 70 | |
| 71 | |
| 72 | public static boolean isNullOrEmpty(@Nullable String string) { |
| 73 | return string == null || string.isEmpty(); |
| 74 | } |
| 75 | |
| 76 | /** |
| 77 | * Returns a string, of length at least {@code minLength}, consisting of {@code string} prepended |
no test coverage detected