We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a545232 commit f85c9c7Copy full SHA for f85c9c7
1 file changed
src/main/java/io/github/intisy/utils/core/StringUtils.java
@@ -227,4 +227,14 @@ public static String toTitleCase(String input) {
227
228
return titleCase.toString().trim();
229
}
230
+
231
+ /**
232
+ * Checks if a string is null or empty.
233
+ *
234
+ * @param str the string to check
235
+ * @return true if the string is null or empty, false otherwise
236
+ */
237
+ public static boolean isNullOrEmpty(String str) {
238
+ return str == null || str.isEmpty();
239
+ }
240
0 commit comments