Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code Review followup: Use Optional<> and create a new Map for length
Created new class PhoneNumberRequiredLengths.java with a Map lookup for the requiredlength of phone numbers in select countries that are well-known to have uniform fixed-length phone number throughout. Country codes missing will continue to use just the previous length-range algorithms. Lookup into this Map is integrated into PhoneNumberValidator.java, no longer needed an overloaded constructor to provide this functionality. [New .java file was accidentally omitted from previous commit]
- Loading branch information