Class BaseValidator

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String mEmptyMessage  
      protected com.google.android.material.textfield.TextInputLayout mErrorContainer  
      protected java.lang.String mErrorMessage  
    • Constructor Summary

      Constructors 
      Constructor Description
      BaseValidator​(com.google.android.material.textfield.TextInputLayout errorContainer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean isValid​(java.lang.CharSequence charSequence)  
      boolean validate​(java.lang.CharSequence charSequence)  
      • Methods inherited from class java.lang.Object

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

      • mErrorContainer

        protected com.google.android.material.textfield.TextInputLayout mErrorContainer
      • mErrorMessage

        protected java.lang.String mErrorMessage
      • mEmptyMessage

        protected java.lang.String mEmptyMessage
    • Constructor Detail

      • BaseValidator

        public BaseValidator​(com.google.android.material.textfield.TextInputLayout errorContainer)
    • Method Detail

      • isValid

        protected boolean isValid​(java.lang.CharSequence charSequence)
      • validate

        public boolean validate​(java.lang.CharSequence charSequence)