info
Enum ProposalType
java.lang.Object
java.lang.Enum<ProposalType>
info.ProposalType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ProposalType>
public enum ProposalType
- extends java.lang.Enum<ProposalType>
Here we define all proposals in the scenario.
|
Method Summary |
static ProposalType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ProposalType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
CINEMA
public static final ProposalType CINEMA
HOME
public static final ProposalType HOME
KISS
public static final ProposalType KISS
LEAVE
public static final ProposalType LEAVE
SEX
public static final ProposalType SEX
PARK
public static final ProposalType PARK
WAIT
public static final ProposalType WAIT
NONE
public static final ProposalType NONE
values
public static ProposalType[] 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 (ProposalType c : ProposalType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ProposalType 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 name
java.lang.NullPointerException - if the argument is null