Enum Region.RegionType
- All Implemented Interfaces:
Serializable, Comparable<Region.RegionType>
- Enclosing class:
Region
RegionType is an enumeration defining the different types of regions. Current possible values
are WORLD, CONTINENT, SUBCONTINENT, TERRITORY, GROUPING, DEPRECATED, and UNKNOWN.
- Author:
- John Emmons
- Status:
- Stable ICU 50.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionType representing a continent.Type representing a region whose code has been deprecated, usually due to a country splitting into multiple territories or changing its name.Type representing a grouping of territories that is not to be used in the normal WORLD/CONTINENT/SUBCONTINENT/TERRITORY containment tree.Type representing a sub-continent.Type representing a territory.Type representing the unknown region.Type representing the whole world. -
Method Summary
Modifier and TypeMethodDescriptionstatic Region.RegionTypeReturns the enum constant of this type with the specified name.static Region.RegionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Type representing the unknown region.- Status:
- Stable ICU 50.
-
TERRITORY
Type representing a territory.- Status:
- Stable ICU 50.
-
WORLD
Type representing the whole world.- Status:
- Stable ICU 50.
-
CONTINENT
Type representing a continent.- Status:
- Stable ICU 50.
-
SUBCONTINENT
Type representing a sub-continent.- Status:
- Stable ICU 50.
-
GROUPING
Type representing a grouping of territories that is not to be used in the normal WORLD/CONTINENT/SUBCONTINENT/TERRITORY containment tree.- Status:
- Stable ICU 50.
-
DEPRECATED
Type representing a region whose code has been deprecated, usually due to a country splitting into multiple territories or changing its name.- Status:
- Stable ICU 50.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-