Package dev.cdevents.constants
Enum CDEventConstants.Outcome
- java.lang.Object
-
- java.lang.Enum<CDEventConstants.Outcome>
-
- dev.cdevents.constants.CDEventConstants.Outcome
-
- All Implemented Interfaces:
Serializable,Comparable<CDEventConstants.Outcome>
- Enclosing class:
- CDEventConstants
public static enum CDEventConstants.Outcome extends Enum<CDEventConstants.Outcome>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OutcomeErrorOutcome Error.OutcomeFailureOutcome Failure.OutcomeSuccessOutcome Success.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetOutcome()voidsetOutcome(String outcome)static CDEventConstants.OutcomevalueOf(String name)Returns the enum constant of this type with the specified name.static CDEventConstants.Outcome[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OutcomeSuccess
public static final CDEventConstants.Outcome OutcomeSuccess
Outcome Success.
-
OutcomeFailure
public static final CDEventConstants.Outcome OutcomeFailure
Outcome Failure.
-
OutcomeError
public static final CDEventConstants.Outcome OutcomeError
Outcome Error.
-
-
Method Detail
-
values
public static CDEventConstants.Outcome[] 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 (CDEventConstants.Outcome c : CDEventConstants.Outcome.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CDEventConstants.Outcome valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getOutcome
public String getOutcome()
- Returns:
- outcome
-
setOutcome
public final void setOutcome(String outcome)
- Parameters:
outcome-
-
-