Package 

Enum PhoneNumberUtil.Leniency

  • All Implemented Interfaces:
    java.io.Serializable , java.lang.Comparable

    
    public enum PhoneNumberUtil.Leniency
    
                        

    Leniency when finding potential phone numbers in textsegments. The levels here are ordered in increasing strictness.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      EXACT_GROUPING

      Phone numbers accepted are valid andare grouped in the same way that we would have formatted it, or as a single block. Forexample, a US number written as "650 2530000" is not accepted at this leniency level, whereas"650 253 0000" or "6502530000" are.Numbers with more than one '/' symbol are also dropped at this level.

      Warning: This level might result in lower coverage especially for regions outside of countrycode "+1". If you are not sure about which level to use, email the discussion grouplibphonenumber-discuss@googlegroups.com.

      STRICT_GROUPING

      Phone numbers accepted are valid andare grouped in a possible way for this locale. For example, a US number written as"65 02 53 00 00" and "650253 0000" are not accepted at this leniency level, whereas"650 253 0000", "650 2530000" or "6502530000" are.Numbers with more than one '/' symbol in the national significant number are also dropped atthis level.

      Warning: This level might result in lower coverage especially for regions outside of countrycode "+1". If you are not sure about which level to use, email the discussion grouplibphonenumber-discuss@googlegroups.com.

      VALID

      Phone numbers accepted are possible and valid. Numbers writtenin national format must have their national-prefix present if it is usually written for anumber of this type.

      POSSIBLE

      Phone numbers accepted are possible, but not necessarily valid.