package com.javarant.challenges.unittests;
/**
* This is the Advanced Challenge class for JavaRant.com episode #2
*
* @author Jeffrey.Richley
*/
public interface AdvancedChallenge {
/**
* This method is to do three types of validation
*
* - Null input is invalid
* - Valid length of input is at least three characters
* and maximum length is eight
* - The input must not be a numeric value
*
* @param value The user input to validate
* @return True if all three validation rules are passed
*/
public boolean isValidInputForUser(String value);
/**
* This method returns the number of times this instance
* has been asked to validate non-valid input through
* the isValidInputForUser() method
* @return The number of times invalid input has been input
*/
public int getNumberOfInvalidInputs();
}