com.hoiio.sdk.objects.enums
Enum FaxStatus
java.lang.Object
java.lang.Enum<FaxStatus>
com.hoiio.sdk.objects.enums.FaxStatus
- All Implemented Interfaces:
- Serializable, Comparable<FaxStatus>
public enum FaxStatus
- extends Enum<FaxStatus>
Method Summary |
static FaxStatus |
fromString(String status)
Converts the string to FaxStatus object |
String |
toString()
Returns a string representation of the object |
static FaxStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static FaxStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
ANSWERED
public static final FaxStatus ANSWERED
UNANSWERED
public static final FaxStatus UNANSWERED
FAILED
public static final FaxStatus FAILED
BUSY
public static final FaxStatus BUSY
ONGOING
public static final FaxStatus ONGOING
values
public static FaxStatus[] 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 (FaxStatus c : FaxStatus.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static FaxStatus 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 name
NullPointerException
- if the argument is null
toString
public String toString()
- Returns a string representation of the object
- Overrides:
toString
in class Enum<FaxStatus>
- Returns:
- string representation of the object
fromString
public static FaxStatus fromString(String status)
- Converts the string to
FaxStatus
object
- Parameters:
status
- The fax status in string
- Returns:
FaxStatus
object