Package org.rspeer.game.adapter.social
Enum FriendsChatUser.Rank
- java.lang.Object
-
- java.lang.Enum<FriendsChatUser.Rank>
-
- org.rspeer.game.adapter.social.FriendsChatUser.Rank
-
- All Implemented Interfaces:
Serializable
,Comparable<FriendsChatUser.Rank>
- Enclosing class:
- FriendsChatUser
public static enum FriendsChatUser.Rank extends Enum<FriendsChatUser.Rank>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FriendsChatUser.Rank
valueOf(int id)
Returns the enum constant of this type with the specified name.static FriendsChatUser.Rank
valueOf(String name)
Returns the enum constant of this type with the specified name.static FriendsChatUser.Rank[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNRANKED
public static final FriendsChatUser.Rank UNRANKED
-
FRIEND
public static final FriendsChatUser.Rank FRIEND
-
RECRUIT
public static final FriendsChatUser.Rank RECRUIT
-
CORPORAL
public static final FriendsChatUser.Rank CORPORAL
-
SERGEANT
public static final FriendsChatUser.Rank SERGEANT
-
LIEUTENANT
public static final FriendsChatUser.Rank LIEUTENANT
-
CAPTAIN
public static final FriendsChatUser.Rank CAPTAIN
-
GENERAL
public static final FriendsChatUser.Rank GENERAL
-
OWNER
public static final FriendsChatUser.Rank OWNER
-
JMOD
public static final FriendsChatUser.Rank JMOD
-
-
Method Detail
-
values
public static FriendsChatUser.Rank[] 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 (FriendsChatUser.Rank c : FriendsChatUser.Rank.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FriendsChatUser.Rank 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
-
valueOf
public static FriendsChatUser.Rank valueOf(int id)
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:
id
- 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
-
-