Package 

Class RegexBasedMatcher

  • All Implemented Interfaces:
    io.michaelrocks.libphonenumber.android.internal.MatcherApi

    
    public final class RegexBasedMatcher
     implements MatcherApi
                        

    Implementation of the matcher API using the regular expressions in the PhoneNumberDesc proto message to match numbers.

    • Method Summary

      Modifier and Type Method Description
      static MatcherApi create()
      boolean matchNationalNumber(CharSequence number, Phonemetadata.PhoneNumberDesc numberDesc, boolean allowPrefixMatch) Returns whether the given national number (a string containing only decimal digits) matchesthe national number pattern defined in the given {@code PhoneNumberDesc} message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait