-
public abstract class METValidatorBase Validator class to either implement or inherit from for custom validation
-
-
Field Summary
Fields Modifier and Type Field Description protected StringerrorMessage
-
Constructor Summary
Constructors Constructor Description METValidator(String errorMessage)
-
Method Summary
Modifier and Type Method Description StringgetErrorMessage()voidsetErrorMessage(@NonNull() String errorMessage)abstract booleanisValid(@NonNull() CharSequence text, boolean isEmpty)Abstract method to implement your own validation checking. -
-
Constructor Detail
-
METValidator
METValidator(String errorMessage)
-
-
Method Detail
-
getErrorMessage
@NonNull() String getErrorMessage()
-
setErrorMessage
void setErrorMessage(@NonNull() String errorMessage)
-
isValid
abstract 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
-
-
-
-