public static enum NumberParseException.ErrorType extends Enum<NumberParseException.ErrorType>
Enum Constant and Description |
---|
INVALID_COUNTRY_CODE |
NOT_A_NUMBER |
TOO_LONG |
TOO_SHORT_AFTER_IDD |
TOO_SHORT_NSN |
Modifier and Type | Method and Description |
---|---|
static NumberParseException.ErrorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NumberParseException.ErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NumberParseException.ErrorType INVALID_COUNTRY_CODE
public static final NumberParseException.ErrorType NOT_A_NUMBER
public static final NumberParseException.ErrorType TOO_SHORT_AFTER_IDD
public static final NumberParseException.ErrorType TOO_SHORT_NSN
public static final NumberParseException.ErrorType TOO_LONG
public static NumberParseException.ErrorType[] values()
for (NumberParseException.ErrorType c : NumberParseException.ErrorType.values()) System.out.println(c);
public static NumberParseException.ErrorType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2015 Google. All Rights Reserved.