Package in.dragonbra.javasteam.enums
Enum EFriendRelationship
- java.lang.Object
-
- java.lang.Enum<EFriendRelationship>
-
- in.dragonbra.javasteam.enums.EFriendRelationship
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<EFriendRelationship>
public enum EFriendRelationship extends java.lang.Enum<EFriendRelationship>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BlockedFriendIgnoredIgnoredFriendNoneRequestInitiatorRequestRecipient
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcode()static EFriendRelationshipfrom(int code)static EFriendRelationshipvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static EFriendRelationship[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
None
public static final EFriendRelationship None
-
Blocked
public static final EFriendRelationship Blocked
-
RequestRecipient
public static final EFriendRelationship RequestRecipient
-
Friend
public static final EFriendRelationship Friend
-
RequestInitiator
public static final EFriendRelationship RequestInitiator
-
Ignored
public static final EFriendRelationship Ignored
-
IgnoredFriend
public static final EFriendRelationship IgnoredFriend
-
-
Method Detail
-
values
public static EFriendRelationship[] 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 (EFriendRelationship c : EFriendRelationship.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EFriendRelationship 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 EFriendRelationship from(int code)
-
-