public enum RelationshipType extends java.lang.Enum<RelationshipType>
Enum Constant and Description |
---|
BLOCKED |
FRIEND |
INCOMING_FRIEND_REQUEST |
NO_RELATIONSHIP |
OUTGOING_FRIEND_REQUEST |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static RelationshipType |
fromKey(int key) |
int |
getKey() |
static RelationshipType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RelationshipType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RelationshipType NO_RELATIONSHIP
public static final RelationshipType FRIEND
public static final RelationshipType BLOCKED
public static final RelationshipType INCOMING_FRIEND_REQUEST
public static final RelationshipType OUTGOING_FRIEND_REQUEST
public static final RelationshipType UNKNOWN
public static RelationshipType[] values()
for (RelationshipType c : RelationshipType.values()) System.out.println(c);
public static RelationshipType 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 int getKey()
public static RelationshipType fromKey(int key)