* ( WORLD, CONTINENT, or SUBCONTINENT ) will always be the containing region instead.
*
* @author John Emmons
- * @draft ICU 4.8
- * @provisional This API might change or be removed in a future release.
+ * @internal ICU 4.8 technology preview
+ * @deprecated This API might change or be removed in a future release.
*/
public class Region implements Comparable<Region> {
* RegionType is an enumeration defining the different types of regions. Current possible
* values are WORLD, CONTINENT, SUBCONTINENT, TERRITORY, GROUPING, DEPRECATED, and UNKNOWN.
*
- * @draft ICU 4.8
- * @provisional This API might change or be removed in a future release.
+ * @internal ICU 4.8 technology preview
+ * @deprecated This API might change or be removed in a future release.
*/
public enum RegionType {
/**
* Type representing the unknown region.
- * @draft ICU 4.8
- * @provisional This API might change or be removed in a future release.
+ * @internal ICU 4.8 technology preview
+ * @deprecated This API might change or be removed in a future release.
*/
UNKNOWN,
/**
* Type representing a territory.
- * @draft ICU 4.8
- * @provisional This API might change or be removed in a future release.
+ * @internal ICU 4.8 technology preview
+ * @deprecated This API might change or be removed in a future release.
*/
TERRITORY,
/**
* Type representing the whole world.
- * @draft ICU 4.8
- * @provisional This API might change or be removed in a future release.
+ * @internal ICU 4.8 technology preview
+ * @deprecated This API might change or be removed in a future release.
*/
WORLD,
/**
* Type representing a continent.
- * @draft ICU 4.8
- * @provisional This API might change or be removed in a future release.
+ * @internal ICU 4.8 technology preview
+ * @deprecated This API might change or be removed in a future release.
*/
CONTINENT,
/**
* Type representing a sub-continent.
- * @draft ICU 4.8
- * @provisional This API might change or be removed in a future release.
+ * @internal ICU 4.8 technology preview
+ * @deprecated This API might change or be removed in a future release.
*/
SUBCONTINENT,
/**
* Type representing a grouping of territories that is not to be used in
* the normal WORLD/CONTINENT/SUBCONTINENT/TERRITORY containment tree.
- * @draft ICU 4.8
- * @provisional This API might change or be removed in a future release.
+ * @internal ICU 4.8 technology preview
+ * @deprecated This API might change or be removed in a future release.
*/
GROUPING,
/**
* Type representing a region whose code has been deprecated, usually
* due to a country splitting into multiple territories or changing its name.
- * @draft ICU 4.8
- * @provisional This API might change or be removed in a future release.
+ * @internal ICU 4.8 technology preview
+ * @deprecated This API might change or be removed in a future release.
*/
DEPRECATED,
}
/**
* A constant used for unknown numeric region code.
* @see #getNumericCode()
- * @draft ICU 4.8
- * @provisional This API might change or be removed in a future release.
+ * @internal ICU 4.8 technology preview
+ * @deprecated This API might change or be removed in a future release.
*/
public static final int UNDEFINED_NUMERIC_CODE = -1;
* @return The corresponding region.
* @throws NullPointerException if the supplied id is null.
* @throws IllegalArgumentException if the supplied ID cannot be canonicalized to a Region ID that is known by ICU.
- * @draft ICU 4.8
- * @provisional This API might change or be removed in a future release.
+ * @internal ICU 4.8 technology preview
+ * @deprecated This API might change or be removed in a future release.
*/
public static Region get(String id) {
* @param code The numeric code of the region to be retrieved.
* @return The corresponding region.
* @throws IllegalArgumentException if the supplied numeric code is not recognized.
- * @draft ICU 4.8
- * @provisional This API might change or be removed in a future release.
+ * @internal ICU 4.8 technology preview
+ * @deprecated This API might change or be removed in a future release.
*/
public static Region get(int code) {
* @param id The string representing the region code to be canonicalized.
* @return The canonicalized (preferred) form of the region code. If the supplied region
* code is not recognized, the unknown region ( code "ZZ" ) is returned.
- * @draft ICU 4.8
- * @provisional This API might change or be removed in a future release.
+ * @internal ICU 4.8 technology preview
+ * @deprecated This API might change or be removed in a future release.
*/
public static String canonicalize(String id) {
*
* @param id The string representing the region code to be checked.
* @return TRUE if the supplied region code is canonical, FALSE otherwise.
- * @draft ICU 4.8
- * @provisional This API might change or be removed in a future release.
+ * @internal ICU 4.8 technology preview
+ * @deprecated This API might change or be removed in a future release.
*/
public static boolean isCanonical(String id) {
*
* @param type The type of regions to be returned ( TERRITORY, MACROREGION, etc. )
* @return An unmodifiable set of all known regions that match the given type.
- * @draft ICU 4.8
- * @provisional This API might change or be removed in a future release.
+ * @internal ICU 4.8 technology preview
+ * @deprecated This API might change or be removed in a future release.
*/
public static Set<Region> getAvailable(RegionType type) {
* @return The region that geographically contains this region. Returns NULL if this region is
* code "001" (World) or "ZZ" (Unknown region). For example, calling this method with region "IT" (Italy)
* returns the region "039" (Southern Europe).
- * @draft ICU 4.8
- * @provisional This API might change or be removed in a future release.
+ * @internal ICU 4.8 technology preview
+ * @deprecated This API might change or be removed in a future release.
*/
public Region getContainingRegion() {
* the various sub regions of Europe - "039" (Southern Europe) - "151" (Eastern Europe)
* - "154" (Northern Europe) and "155" (Western Europe).
*
- * @draft ICU 4.8
- * @provisional This API might change or be removed in a future release.
+ * @internal ICU 4.8 technology preview
+ * @deprecated This API might change or be removed in a future release.
*/
public Set<Region> getSubRegions() {
* For example, calling this method with region "150" (Europe) returns a set containing all
* the territories in Europe ( "FR" (France) - "IT" (Italy) - "DE" (Germany) etc. )
*
- * @draft ICU 4.8
- * @provisional This API might change or be removed in a future release.
+ * @internal ICU 4.8 technology preview
+ * @deprecated This API might change or be removed in a future release.
*/
public Set<Region> getContainedTerritories() {
*
* @return The string representation of this region, which is its canonical ID.
*
- * @draft ICU 4.8
- * @provisional This API might change or be removed in a future release.
+ * @internal ICU 4.8 technology preview
+ * @deprecated This API might change or be removed in a future release.
*/
public String toString() {
* given region does not have a numeric code assigned to it. This is a very rare case and
* only occurs for a few very small territories.
*
- * @draft ICU 4.8
- * @provisional This API might change or be removed in a future release.
+ * @internal ICU 4.8 technology preview
+ * @deprecated This API might change or be removed in a future release.
*/
public int getNumericCode() {
*
* @return This region's type classification, such as MACROREGION or TERRITORY.
*
- * @draft ICU 4.8
- * @provisional This API might change or be removed in a future release.
+ * @internal ICU 4.8 technology preview
+ * @deprecated This API might change or be removed in a future release.
*/
public RegionType getType() {
*
* @return Returns TRUE if this region matches the supplied type.
*
- * @draft ICU 4.8
- * @provisional This API might change or be removed in a future release.
+ * @internal ICU 4.8 technology preview
+ * @deprecated This API might change or be removed in a future release.
*/
public boolean isOfType(RegionType type) {
/**
* {@inheritDoc}
- * @draft ICU 4.8
- * @provisional This API might change or be removed in a future release.
+ * @internal ICU 4.8 technology preview
+ * @deprecated This API might change or be removed in a future release.
*/
public int compareTo(Region other) {
return id.compareTo(other.id);