Package in.dragonbra.javasteam.enums
Enum ERegionCode
- java.lang.Object
-
- java.lang.Enum<ERegionCode>
-
- in.dragonbra.javasteam.enums.ERegionCode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ERegionCode>
public enum ERegionCode extends java.lang.Enum<ERegionCode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AfricaAsiaAustraliaEuropeMiddleEastSouthAmericaUSEastUSWestWorld
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description bytecode()static ERegionCodefrom(byte code)static ERegionCodevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ERegionCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
USEast
public static final ERegionCode USEast
-
USWest
public static final ERegionCode USWest
-
SouthAmerica
public static final ERegionCode SouthAmerica
-
Europe
public static final ERegionCode Europe
-
Asia
public static final ERegionCode Asia
-
Australia
public static final ERegionCode Australia
-
MiddleEast
public static final ERegionCode MiddleEast
-
Africa
public static final ERegionCode Africa
-
World
public static final ERegionCode World
-
-
Method Detail
-
values
public static ERegionCode[] 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 (ERegionCode c : ERegionCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ERegionCode 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
-
code
public byte code()
-
from
public static ERegionCode from(byte code)
-
-