Enum PhoneNumberUtil.ValidationResult

    • Enum Constant Detail

      • IS_POSSIBLE_LOCAL_ONLY

        public static final PhoneNumberUtil.ValidationResult IS_POSSIBLE_LOCAL_ONLY
        The number length matches that of local numbers for this region only (i.e. numbers that may be able to be dialled within an area, but do not have all the information to be dialled from anywhere inside or outside the country).
      • INVALID_LENGTH

        public static final PhoneNumberUtil.ValidationResult INVALID_LENGTH
        The number is longer than the shortest valid numbers for this region, shorter than the longest valid numbers for this region, and does not itself have a number length that matches valid numbers for this region. This can also be returned in the case where isPossibleNumberForTypeWithReason was called, and there are no numbers of this type at all for this region.
    • Method Detail

      • values

        public static PhoneNumberUtil.ValidationResult[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PhoneNumberUtil.ValidationResult c : PhoneNumberUtil.ValidationResult.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PhoneNumberUtil.ValidationResult valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null