public static enum PhoneNumberUtil.Leniency extends java.lang.Enum<PhoneNumberUtil.Leniency>
| 枚举常量和说明 |
|---|
EXACT_GROUPING
Phone numbers accepted are valid and
are grouped in the same way that we would have formatted it, or as a single block.
|
POSSIBLE
Phone numbers accepted are possible, but not necessarily valid.
|
STRICT_GROUPING
Phone numbers accepted are valid and
are grouped in a possible way for this locale.
|
VALID
Phone numbers accepted are possible and valid.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static PhoneNumberUtil.Leniency |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static PhoneNumberUtil.Leniency[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final PhoneNumberUtil.Leniency POSSIBLE
public static final PhoneNumberUtil.Leniency VALID
public static final PhoneNumberUtil.Leniency STRICT_GROUPING
Warning: This level might result in lower coverage especially for regions outside of country code "+1". If you are not sure about which level to use, email the discussion group libphonenumber-discuss@googlegroups.com.
public static final PhoneNumberUtil.Leniency EXACT_GROUPING
Warning: This level might result in lower coverage especially for regions outside of country code "+1". If you are not sure about which level to use, email the discussion group libphonenumber-discuss@googlegroups.com.
public static PhoneNumberUtil.Leniency[] values()
for (PhoneNumberUtil.Leniency c : PhoneNumberUtil.Leniency.values()) System.out.println(c);
public static PhoneNumberUtil.Leniency valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值