Enum WorldRegion
- java.lang.Object
-
- java.lang.Enum<WorldRegion>
-
- com.runemate.game.api.osrs.location.WorldRegion
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<WorldRegion>
public enum WorldRegion extends java.lang.Enum<WorldRegion>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AMERICA
AUSTRALIA
GERMANY
UNITED_KINGDOM
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAlpha2()
java.lang.String
getAlpha3()
static WorldRegion
valueOf(int location)
Returns the enum constant of this type with the specified name.static WorldRegion
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static WorldRegion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AMERICA
public static final WorldRegion AMERICA
-
UNITED_KINGDOM
public static final WorldRegion UNITED_KINGDOM
-
AUSTRALIA
public static final WorldRegion AUSTRALIA
-
GERMANY
public static final WorldRegion GERMANY
-
-
Method Detail
-
values
public static WorldRegion[] 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 (WorldRegion c : WorldRegion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WorldRegion valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getAlpha2
public java.lang.String getAlpha2()
-
getAlpha3
public java.lang.String getAlpha3()
-
valueOf
public static WorldRegion valueOf(int location)
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:
location
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-