Class BlankValidation

  • All Implemented Interfaces:
    Validation

    public class BlankValidation
    extends java.lang.Object
    implements Validation
    The Class BlankValidation. Validation to check if input string is whitespace, empty ("") or null.
    • Constructor Summary

      Constructors 
      Constructor Description
      BlankValidation()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean validate​(java.lang.String input)
      Validate the given input string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BlankValidation

        public BlankValidation()
    • Method Detail

      • validate

        public boolean validate​(java.lang.String input)
        Validate the given input string.
        Specified by:
        validate in interface Validation
        Parameters:
        input - the input string to validate
        Returns:
        true if input string is whitespace, empty ("") or null
        See Also:
        Validation.validate(java.lang.String)