
verifier.StringVerifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of util Show documentation
Show all versions of util Show documentation
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