Package org.meeuw.i18n.regions
Enum Region.Type
- java.lang.Object
-
- java.lang.Enum<Region.Type>
-
- org.meeuw.i18n.regions.Region.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<Region.Type>
- Enclosing interface:
- Region
public static enum Region.Type extends Enum<Region.Type>
Type of regions. For now this is small list, we may add all known 'subdivision' of countries.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTINENT
ContinentsCOUNTRY
A country or former countrySUBDIVISION
A subdivision of a country, of which the type is otherwise unknownUNDEFINED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Region.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static Region.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COUNTRY
public static final Region.Type COUNTRY
A country or former country
-
CONTINENT
public static final Region.Type CONTINENT
Continents
-
SUBDIVISION
public static final Region.Type SUBDIVISION
A subdivision of a country, of which the type is otherwise unknown
-
UNDEFINED
public static final Region.Type UNDEFINED
-
-
Method Detail
-
values
public static Region.Type[] values()
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.Type c : Region.Type.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.Type valueOf(String name)
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
-
-