public boolean validateWith(@NonNull METValidator validator){
  CharSequence text=getText();
  boolean isValid=validator.isValid(text,text.length() == 0);
  if (!isValid) {
    setError(validator.getErrorMessage());
  }
  postInvalidate();
  return isValid;
}

public boolean validateWith ( @ NonNull METValidator validator ) { CharSequence text = getText ( ) ; boolean isValid = validator . isValid ( text , text . length ( ) == 0 ) ; if ( ! isValid ) { setError ( validator . getErrorMessage ( ) ) ; } postInvalidate ( ) ; return isValid ; }
run validation on a single validator instance
