|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<PhoneNumberUtil.Leniency> com.google.i18n.phonenumbers.PhoneNumberUtil.Leniency
public static enum PhoneNumberUtil.Leniency
Leniency when finding potential phone numbers in text segments. The levels here are ordered in increasing strictness.
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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 [email protected].
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 [email protected].
Method Detail |
---|
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 name
java.lang.NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |