public static enum SocialCommitment.CommitmentState extends Enum<SocialCommitment.CommitmentState>
CommitmentState
enumeration is used to describe the set of possible states that a social commitment may be in.Enum Constant and Description |
---|
CANCELED |
CREATED |
FULFILLED |
PERFORM_ACTION |
READY_FULFILLED |
STARTED |
VIOLATED |
Modifier and Type | Field and Description |
---|---|
private String |
name
The name of this social commitment state.
|
Modifier and Type | Method and Description |
---|---|
String |
toString()
Returns the name of this social commitment state.
|
static SocialCommitment.CommitmentState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SocialCommitment.CommitmentState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SocialCommitment.CommitmentState CREATED
public static final SocialCommitment.CommitmentState STARTED
public static final SocialCommitment.CommitmentState VIOLATED
public static final SocialCommitment.CommitmentState PERFORM_ACTION
public static final SocialCommitment.CommitmentState READY_FULFILLED
public static final SocialCommitment.CommitmentState FULFILLED
public static final SocialCommitment.CommitmentState CANCELED
private String name
public static SocialCommitment.CommitmentState[] values()
for (SocialCommitment.CommitmentState c : SocialCommitment.CommitmentState.values()) System.out.println(c);
public static SocialCommitment.CommitmentState 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<SocialCommitment.CommitmentState>