Package 

Class RegexpValidator

    • Method Summary

      Modifier and Type Method Description
      boolean isValid(@NonNull() CharSequence text, boolean isEmpty) Abstract method to implement your own validation checking.
      • Methods inherited from class com.rengwuxian.materialedittext.validation.METValidator

        getErrorMessage, setErrorMessage
      • Methods inherited from class java.lang.Object

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

      • RegexpValidator

        RegexpValidator(String errorMessage, String regex)
      • RegexpValidator

        RegexpValidator(String errorMessage, Pattern pattern)
    • Method Detail

      • isValid

         boolean isValid(@NonNull() CharSequence text, boolean isEmpty)

        Abstract method to implement your own validation checking.

        Parameters:
        text - The CharSequence representation of the text in the EditText field.
        isEmpty - Boolean indicating whether or not the text param is empty