public static enum Address.Field extends Enum<Address.Field>
Enum Constant and Description |
---|
COUNTRY
the field name for country.
|
FORMATTED
the field name for formatted.
|
LATITUDE
the field name for latitude.
|
LOCALITY
the field name for locality.
|
LONGITUDE
the field name for longitude.
|
POSTAL_CODE
the field name for postalCode.
|
PRIMARY
the field name for primary.
|
REGION
the field name for region.
|
STREET_ADDRESS
the feild name for streetAddress this field may be multiple lines.
|
TYPE
the field name for type.
|
Modifier and Type | Method and Description |
---|---|
String |
toString()
emit the field as a json element.
|
static Address.Field |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Address.Field[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Address.Field COUNTRY
public static final Address.Field LATITUDE
public static final Address.Field LOCALITY
public static final Address.Field LONGITUDE
public static final Address.Field POSTAL_CODE
public static final Address.Field REGION
public static final Address.Field STREET_ADDRESS
public static final Address.Field TYPE
public static final Address.Field FORMATTED
public static final Address.Field PRIMARY
public static Address.Field[] values()
for (Address.Field c : Address.Field.values()) System.out.println(c);
public static Address.Field 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 toString()
toString
in class Enum<Address.Field>
Copyright © 2018 WSO2. All rights reserved.