
fi.evolver.utils.string.StringUtils Maven / Gradle / Ivy
package fi.evolver.utils.string;
public class StringUtils {
public static boolean isNullOrEmpty(String s) {
return s == null || s.isEmpty();
}
/**
* Null-safe way to check if a string has text
* @param s the string to check
* @return true if s is neither null nor empty
*/
public static boolean hasText(String s) {
return !isNullOrEmpty(s);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy