Enum CallStatus
- java.lang.Object
-
- java.lang.Enum<CallStatus>
-
- org.motechproject.mots.domain.enums.CallStatus
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CallStatus>
public enum CallStatus extends java.lang.Enum<CallStatus>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAILED
FINISHED_COMPLETE
FINISHED_INCOMPLETE
IN_PROGRESS
INITIATED
UNKNOWN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CallStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CallStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INITIATED
public static final CallStatus INITIATED
-
IN_PROGRESS
public static final CallStatus IN_PROGRESS
-
FAILED
public static final CallStatus FAILED
-
FINISHED_COMPLETE
public static final CallStatus FINISHED_COMPLETE
-
FINISHED_INCOMPLETE
public static final CallStatus FINISHED_INCOMPLETE
-
UNKNOWN
public static final CallStatus UNKNOWN
-
-
Method Detail
-
values
public static CallStatus[] 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 (CallStatus c : CallStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CallStatus 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 namejava.lang.NullPointerException
- if the argument is null
-
-