Package in.dragonbra.javasteam.enums
Enum EPersonaState
- java.lang.Object
-
- java.lang.Enum<EPersonaState>
-
- in.dragonbra.javasteam.enums.EPersonaState
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<EPersonaState>
public enum EPersonaState extends java.lang.Enum<EPersonaState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AwayBusyInvisibleLookingToPlayLookingToTradeOfflineOnlineSnooze
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcode()static EPersonaStatefrom(int code)static EPersonaStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static EPersonaState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Offline
public static final EPersonaState Offline
-
Online
public static final EPersonaState Online
-
Busy
public static final EPersonaState Busy
-
Away
public static final EPersonaState Away
-
Snooze
public static final EPersonaState Snooze
-
LookingToTrade
public static final EPersonaState LookingToTrade
-
LookingToPlay
public static final EPersonaState LookingToPlay
-
Invisible
public static final EPersonaState Invisible
-
-
Method Detail
-
values
public static EPersonaState[] 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 (EPersonaState c : EPersonaState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EPersonaState 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 int code()
-
from
public static EPersonaState from(int code)
-
-