public enum FriendRelationship extends java.lang.Enum<FriendRelationship>
Enum Constant and Description |
---|
NORMAL_FRIEND |
NOT_FRIEND |
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static FriendRelationship |
RelationshipOfValue(int status) |
static FriendRelationship |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FriendRelationship[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FriendRelationship NOT_FRIEND
public static final FriendRelationship NORMAL_FRIEND
public static FriendRelationship[] values()
for (FriendRelationship c : FriendRelationship.values()) System.out.println(c);
public static FriendRelationship valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static FriendRelationship RelationshipOfValue(int status)
public int getValue()