public static enum PhoneNumberUtil.ValidationResult extends java.lang.Enum<PhoneNumberUtil.ValidationResult>
Enum Constant | Description |
---|---|
INVALID_COUNTRY_CODE |
The number has an invalid country calling code.
|
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.
|
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.
|
TOO_LONG |
The number is longer than all valid numbers for this region.
|
TOO_SHORT |
The number is shorter than all valid numbers for this region.
|
Modifier and Type | Method | Description |
---|---|---|
static PhoneNumberUtil.ValidationResult |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static PhoneNumberUtil.ValidationResult[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PhoneNumberUtil.ValidationResult IS_POSSIBLE
public static final PhoneNumberUtil.ValidationResult IS_POSSIBLE_LOCAL_ONLY
public static final PhoneNumberUtil.ValidationResult INVALID_COUNTRY_CODE
public static final PhoneNumberUtil.ValidationResult TOO_SHORT
public static final PhoneNumberUtil.ValidationResult INVALID_LENGTH
public static final PhoneNumberUtil.ValidationResult TOO_LONG
public static PhoneNumberUtil.ValidationResult[] values()
for (PhoneNumberUtil.ValidationResult c : PhoneNumberUtil.ValidationResult.values()) System.out.println(c);
public static PhoneNumberUtil.ValidationResult valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2021 Google. All Rights Reserved.