public enum FriendshipState extends Enum<FriendshipState>
| Enum Constant and Description |
|---|
ACCEPTED |
CANCELLED |
PENDING
The FriendshipState can be a regular pending, accepted, rejected or cancelled.
|
REJECTED |
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
static FriendshipState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FriendshipState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FriendshipState PENDING
public static final FriendshipState ACCEPTED
public static final FriendshipState REJECTED
public static final FriendshipState CANCELLED
public static FriendshipState[] values()
for (FriendshipState c : FriendshipState.values()) System.out.println(c);
public static FriendshipState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String toString()
toString in class Enum<FriendshipState>Copyright © 2017. All rights reserved.