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

final Object clone()

Throws CloneNotSupportedException.

final int compareTo(Locale.IsoCountryCode o)

Compares this enum with the specified object for order.

final boolean equals(Object other)

Returns true if the specified object is equal to this enum constant.

final void finalize()

enum classes cannot have finalize methods.

final Class<Locale.IsoCountryCode> getDeclaringClass()

Returns the Class object corresponding to this enum constant's enum type.

final int hashCode()

Returns a hash code for this enum constant.

final String name()

Returns the name of this enum constant, exactly as declared in its enum declaration.

final int ordinal()

Returns the ordinal of this enumeration constant (its position in its enum declaration, where the initial constant is assigned an ordinal of zero).

String toString()

Returns the name of this enum constant, as contained in the declaration.

static <T extends Enum<T>> T valueOf(Class<T> enumClass, String name)

Returns the enum constant of the specified enum class with the specified name.

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

abstract int compareTo(Locale.IsoCountryCode o)

Compares this object with the specified object for order.

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

values

public static final IsoCountryCode[] values ()