Enum Class RegionCode
- All Implemented Interfaces:
Serializable,Comparable<RegionCode>,Constable
Enumerate for region code.
- Since:
- 12.0
- Author:
- Luc Maisonobe
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintGet the integer identifier.Get the string identifier.static RegionCodeparseRegionCode(int i) Parse the integer to get the region code.static RegionCodeParse the string to get the region code.static RegionCodeReturns the enum constant of this class with the specified name.static RegionCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WIDE_AREA
Wide Area. -
JAPAN
Japan area (for QZSS only).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getIntegerId
public int getIntegerId()Get the integer identifier.- Returns:
- integer identifier
- Since:
- 14.0
-
getStringId
Get the string identifier.- Returns:
- string identifier
- Since:
- 14.0
-
parseRegionCode
Parse the integer to get the region code.- Parameters:
i- integer to parse- Returns:
- the region code corresponding to the string
- Throws:
IllegalArgumentException- if the string does not correspond to a region code- Since:
- 14.0
-
parseRegionCode
Parse the string to get the region code.- Parameters:
s- string to parse- Returns:
- the region code corresponding to the string
- Throws:
IllegalArgumentException- if the string does not correspond to a region code- Since:
- 14.0
-