-
public class RegexpValidator extends METValidator
Custom validator for Regexes
-
-
Constructor Summary
Constructors Constructor Description RegexpValidator(String errorMessage, String regex)RegexpValidator(String errorMessage, Pattern pattern)
-
Method Summary
Modifier and Type Method Description booleanisValid(@NonNull() CharSequence text, boolean isEmpty)Abstract method to implement your own validation checking. -
-
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
-
-
-
-