isValid

checks if the current state is valid

Return

true if the current state is valid


fun isValid(value: String): Boolean

runs the validation function and returns its result (without changing this validators state)