public static enum AccountCreator.PhoneNumberStatus extends java.lang.Enum<AccountCreator.PhoneNumberStatus>
| Enum Constant and Description |
|---|
Invalid
Phone number invalid.
|
InvalidCountryCode
Country code invalid.
|
Ok
Phone number ok.
|
TooLong
Phone number too long.
|
TooShort
Phone number too short.
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
mValue |
| Modifier and Type | Method and Description |
|---|---|
static AccountCreator.PhoneNumberStatus |
fromInt(int value) |
int |
toInt() |
static AccountCreator.PhoneNumberStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AccountCreator.PhoneNumberStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccountCreator.PhoneNumberStatus Ok
public static final AccountCreator.PhoneNumberStatus TooShort
public static final AccountCreator.PhoneNumberStatus TooLong
public static final AccountCreator.PhoneNumberStatus InvalidCountryCode
public static final AccountCreator.PhoneNumberStatus Invalid
public static AccountCreator.PhoneNumberStatus[] values()
for (AccountCreator.PhoneNumberStatus c : AccountCreator.PhoneNumberStatus.values()) System.out.println(c);
public static AccountCreator.PhoneNumberStatus 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 nullpublic static AccountCreator.PhoneNumberStatus fromInt(int value) throws java.lang.RuntimeException
java.lang.RuntimeExceptionpublic int toInt()