public static enum EmergencyAddress.PhoneCountryEnum extends Enum<EmergencyAddress.PhoneCountryEnum>
Modifier and Type | Class and Description |
---|---|
static class |
EmergencyAddress.PhoneCountryEnum.Adapter |
Modifier and Type | Method and Description |
---|---|
static EmergencyAddress.PhoneCountryEnum |
fromValue(String value) |
String |
getValue() |
String |
toString() |
static EmergencyAddress.PhoneCountryEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EmergencyAddress.PhoneCountryEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EmergencyAddress.PhoneCountryEnum US
public static final EmergencyAddress.PhoneCountryEnum GB
public static final EmergencyAddress.PhoneCountryEnum AU
public static EmergencyAddress.PhoneCountryEnum[] values()
for (EmergencyAddress.PhoneCountryEnum c : EmergencyAddress.PhoneCountryEnum.values()) System.out.println(c);
public static EmergencyAddress.PhoneCountryEnum 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 nullpublic String getValue()
public String toString()
toString
in class Enum<EmergencyAddress.PhoneCountryEnum>
public static EmergencyAddress.PhoneCountryEnum fromValue(String value)
Copyright © 2023. All rights reserved.