Simple form input validator for your Java application. It can be used in your Android ViewModel for example to validate your form inputs
validate a name: should only contain letters and numbers
assertEquals(Validation.validateName("John Doe").isValid(), true);
validate a phone number: should only contain 9 numbers and start with number 6
assertEquals(Validation.validatePhoneNumber(678984294l).isValid(), true);
validate a date of birth: age should be >=18
assertEquals(Validation.validateDob(20, 10, 2000).isValid(), true);
validate a password
assertEquals(Validation.validatePassword("-John?!Doe021").isValid(), true);