com.ibm.icu.util
Enum Region.RegionType

java.lang.Object
  extended by java.lang.Enum<Region.RegionType>
      extended by com.ibm.icu.util.Region.RegionType
All Implemented Interfaces:
Serializable, Comparable<Region.RegionType>
Enclosing class:
Region

Deprecated. This API might change or be removed in a future release.

public static enum Region.RegionType
extends Enum<Region.RegionType>

RegionType is an enumeration defining the different types of regions. Current possible values are WORLD, CONTINENT, SUBCONTINENT, TERRITORY, GROUPING, DEPRECATED, and UNKNOWN.

Status:
Technology Preview. This API is still in the early stages of development. Use at your own risk.

Enum Constant Summary
CONTINENT
          Deprecated. This API might change or be removed in a future release.
DEPRECATED
          Deprecated. This API might change or be removed in a future release.
GROUPING
          Deprecated. This API might change or be removed in a future release.
SUBCONTINENT
          Deprecated. This API might change or be removed in a future release.
TERRITORY
          Deprecated. This API might change or be removed in a future release.
UNKNOWN
          Deprecated. This API might change or be removed in a future release.
WORLD
          Deprecated. This API might change or be removed in a future release.
 
Method Summary
static Region.RegionType valueOf(String name)
          Deprecated. Returns the enum constant of this type with the specified name.
static Region.RegionType[] values()
          Deprecated. Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNKNOWN

public static final Region.RegionType UNKNOWN
Deprecated. This API might change or be removed in a future release.
Type representing the unknown region.

Status:
Technology Preview. This API is still in the early stages of development. Use at your own risk.

TERRITORY

public static final Region.RegionType TERRITORY
Deprecated. This API might change or be removed in a future release.
Type representing a territory.

Status:
Technology Preview. This API is still in the early stages of development. Use at your own risk.

WORLD

public static final Region.RegionType WORLD
Deprecated. This API might change or be removed in a future release.
Type representing the whole world.

Status:
Technology Preview. This API is still in the early stages of development. Use at your own risk.

CONTINENT

public static final Region.RegionType CONTINENT
Deprecated. This API might change or be removed in a future release.
Type representing a continent.

Status:
Technology Preview. This API is still in the early stages of development. Use at your own risk.

SUBCONTINENT

public static final Region.RegionType SUBCONTINENT
Deprecated. This API might change or be removed in a future release.
Type representing a sub-continent.

Status:
Technology Preview. This API is still in the early stages of development. Use at your own risk.

GROUPING

public static final Region.RegionType GROUPING
Deprecated. This API might change or be removed in a future release.
Type representing a grouping of territories that is not to be used in the normal WORLD/CONTINENT/SUBCONTINENT/TERRITORY containment tree.

Status:
Technology Preview. This API is still in the early stages of development. Use at your own risk.

DEPRECATED

public static final Region.RegionType DEPRECATED
Deprecated. This API might change or be removed in a future release.
Type representing a region whose code has been deprecated, usually due to a country splitting into multiple territories or changing its name.

Status:
Technology Preview. This API is still in the early stages of development. Use at your own risk.
Method Detail

values

public static Region.RegionType[] values()
Deprecated. 
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Region.RegionType c : Region.RegionType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Region.RegionType valueOf(String name)
Deprecated. 
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright (c) 2011 IBM Corporation and others.