public class BaseValidator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
mEmptyMessage |
protected com.google.android.material.textfield.TextInputLayout |
mErrorContainer |
protected String |
mErrorMessage |
| Constructor and Description |
|---|
BaseValidator(com.google.android.material.textfield.TextInputLayout errorContainer) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isValid(CharSequence charSequence) |
boolean |
validate(CharSequence charSequence) |
protected com.google.android.material.textfield.TextInputLayout mErrorContainer
protected String mErrorMessage
protected String mEmptyMessage
public BaseValidator(com.google.android.material.textfield.TextInputLayout errorContainer)
protected boolean isValid(CharSequence charSequence)
public boolean validate(CharSequence charSequence)