checkGroups abstract method
bool
checkGroups(
- PhoneNumberUtil util,
- PhoneNumber number,
- StringBuffer normalizedCandidate,
- List<
String> expectedNumberGroups,
Returns true if the groups of digits found in our candidate phone number match our expectations.
number
the original number we found when parsing normalizedCandidate
the candidate number, normalized to only contain ASCII digits,
but with non-digits (spaces etc) retained expectedNumberGroups
the groups of digits that we would expect to see if we formatted this number
Implementation
bool checkGroups(
PhoneNumberUtil util,
PhoneNumber number,
StringBuffer normalizedCandidate,
List<String> expectedNumberGroups,
);