Interface PhoneValidator

All Superinterfaces:
Cloneable, Validator
All Known Implementing Classes:
PhoneValidatorImpl

public interface PhoneValidator extends Validator
Validates phone numbers. A phone number is considered valid if it is in E.164 format or if it matches the custom regex provided via application property `nice2.validate.customPhoneRegex`.
  • Method Details

    • getCustomRegex

      String getCustomRegex()
    • getDefaultRegion

      String getDefaultRegion()