Interface MatcherApi
-
- All Known Implementing Classes:
RegexBasedMatcher
public interface MatcherApi
Internal phonenumber matching API used to isolate the underlying implementation of the matcher and allow different implementations to be swapped in easily.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
matchNationalNumber(java.lang.CharSequence number, Phonemetadata.PhoneNumberDesc numberDesc, boolean allowPrefixMatch)
Returns whether the given national number (a string containing only decimal digits) matches the national number pattern defined in the givenPhoneNumberDesc
message.
-
-
-
Method Detail
-
matchNationalNumber
boolean matchNationalNumber(java.lang.CharSequence number, Phonemetadata.PhoneNumberDesc numberDesc, boolean allowPrefixMatch)
Returns whether the given national number (a string containing only decimal digits) matches the national number pattern defined in the givenPhoneNumberDesc
message.
-
-