Interface PhoneNumberDescriptor


  • public interface PhoneNumberDescriptor
    Describes a phone number
    • Method Detail

      • getCountryCode

        int getCountryCode()
        Returns the country dialing code
      • getRawNumber

        String getRawNumber()
        Returns the raw, input number
      • isCustom

        boolean isCustom()
        Indicates whether this descriptor is from a custom script
      • isLandLine

        boolean isLandLine()
        Indicates whether the number can be used for land-line (fixed line) phones
      • isMobile

        boolean isMobile()
        Indicates whether the number can be used for mobile phones
      • toE164

        String toE164()
        Normalizes the number to the E164 format
      • toInternationalFormat

        String toInternationalFormat()
        Formats according to international code
      • toNationalFormat

        String toNationalFormat()
        Formats according to the current region code