Package 

Enum PhoneNumberUtil.ValidationResult

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

    
    public enum PhoneNumberUtil.ValidationResult
    
                        

    Possible outcomes when testing if a PhoneNumber is possible.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      IS_POSSIBLE

      The number length matches that of valid numbers for this region.

      IS_POSSIBLE_LOCAL_ONLY

      The number length matches that of local numbers for this region only (i.e. numbers that maybe able to be dialled within an area, but do not have all the information to be dialled fromanywhere inside or outside the country).

      INVALID_COUNTRY_CODE

      The number has an invalid country calling code.

      TOO_SHORT

      The number is shorter than all valid numbers for this region.

      INVALID_LENGTH

      The number is longer than the shortest valid numbers for this region, shorter than thelongest valid numbers for this region, and does not itself have a number length that matchesvalid numbers for this region. This can also be returned in the case whereisPossibleNumberForTypeWithReason was called, and there are no numbers of this type at allfor this region.

      TOO_LONG

      The number is longer than all valid numbers for this region.