public enum UsersWhichCanAddToContacts extends java.lang.Enum<UsersWhichCanAddToContacts>
| Enum Constant and Description |
|---|
BOTH
Both users can be added to the contact list
|
FROM
The user that performed the payment can be added to the contact list
|
NONE
None of the users can be added to the contact list
|
TO
The user that received the payment can be added to the contact list
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAddFrom() |
boolean |
canAddTo() |
static UsersWhichCanAddToContacts |
from(boolean canAddFrom,
boolean canAddTo) |
static UsersWhichCanAddToContacts |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UsersWhichCanAddToContacts[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UsersWhichCanAddToContacts NONE
public static final UsersWhichCanAddToContacts FROM
public static final UsersWhichCanAddToContacts TO
public static final UsersWhichCanAddToContacts BOTH
public static UsersWhichCanAddToContacts[] values()
for (UsersWhichCanAddToContacts c : UsersWhichCanAddToContacts.values()) System.out.println(c);
public static UsersWhichCanAddToContacts 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 UsersWhichCanAddToContacts from(boolean canAddFrom, boolean canAddTo)
public boolean canAddFrom()
public boolean canAddTo()