Locale.IsoCountryCode

public static final enum Locale.IsoCountryCode
extends Enum<Locale.IsoCountryCode>

java.lang.Object
   ↳ java.lang.Enum<java.util.Locale.IsoCountryCode>
     ↳ java.util.Locale.IsoCountryCode


Enum for specifying the type defined in ISO 3166. This enum is used to retrieve the two-letter ISO3166-1 alpha-2, three-letter ISO3166-1 alpha-3, four-letter ISO3166-3 country codes.

Summary

Enum values

Locale.IsoCountryCode  PART1_ALPHA2

PART1_ALPHA2 is used to represent the ISO3166-1 alpha-2 two letter country codes. 

Locale.IsoCountryCode  PART1_ALPHA3

PART1_ALPHA3 is used to represent the ISO3166-1 alpha-3 three letter country codes. 

Locale.IsoCountryCode  PART3

PART3 is used to represent the ISO3166-3 four letter country codes. 

Public methods

static Locale.IsoCountryCode valueOf(String name)
static final IsoCountryCode[] values()

Inherited methods

Enum values

PART1_ALPHA2

Added in API level 34
public static final Locale.IsoCountryCode PART1_ALPHA2

PART1_ALPHA2 is used to represent the ISO3166-1 alpha-2 two letter country codes.

PART1_ALPHA3

Added in API level 34
public static final Locale.IsoCountryCode PART1_ALPHA3

PART1_ALPHA3 is used to represent the ISO3166-1 alpha-3 three letter country codes.

PART3

Added in API level 34
public static final Locale.IsoCountryCode PART3

PART3 is used to represent the ISO3166-3 four letter country codes.

Public methods

valueOf

public static Locale.IsoCountryCode valueOf (String name)

Parameters
name String

Returns
Locale.IsoCountryCode

values

public static final IsoCountryCode[] values ()

Returns
IsoCountryCode[]