public static enum PhoneNumberUtil.Leniency extends java.lang.Enum<PhoneNumberUtil.Leniency>
| Enum Constant | Description |
|---|---|
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 |
|
STRICT_GROUPING |
Phone numbers accepted are valid and
are grouped in a possible way for this locale.
|
VALID |
| Modifier and Type | Method | Description |
|---|---|---|
static PhoneNumberUtil.Leniency |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static PhoneNumberUtil.Leniency[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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 - 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 © 2020 Google. All Rights Reserved.