All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fi.evolver.utils.string.StringUtils Maven / Gradle / Ivy

There is a newer version: 3.5.0
Show newest version
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