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

verifier.StringVerifier Maven / Gradle / Ivy

Go to download

This project provides util classes that facilitate loading properties file, verify string conditions ans cep validation.

The newest version!
package verifier;

/**
 * This class verify String conditions.
 * 
 * @author Jhonathan Camacho
 *
 */
public class StringVerifier {
	
	/**
	 * Verify if the string is not blank.
	 * 
	 * @param string the string that will be verified.
	 * 
	 * @return true if the string is not blank. Return false otherwise.
	 */
	public static boolean notBlanck(String string){
		return string != null && !string.trim().isEmpty();
	}
	
	/**
	 * Verify if the string is blank.
	 * 
	 * @param string the string that will be verified.
	 * 
	 * @return true if the string is blank. Return false otherwise.
	 */
	public static boolean isBlanck(String string){		
		return string == null || string.trim().isEmpty();
	}	
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy