public enum PhoneStatus extends java.lang.Enum<PhoneStatus>
Enum Constant and Description |
---|
AVAILABLE |
BUSY |
BUSY_AND_RINGING |
CALLING |
DEACTIVATED |
ERROR |
ONHOLD |
RINGING |
UNAVAILABLE |
UNEXISTING |
Modifier and Type | Method and Description |
---|---|
int |
code() |
static PhoneStatus |
fromCode(int code) |
static PhoneStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PhoneStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PhoneStatus ONHOLD
public static final PhoneStatus RINGING
public static final PhoneStatus UNAVAILABLE
public static final PhoneStatus BUSY_AND_RINGING
public static final PhoneStatus AVAILABLE
public static final PhoneStatus CALLING
public static final PhoneStatus BUSY
public static final PhoneStatus DEACTIVATED
public static final PhoneStatus UNEXISTING
public static final PhoneStatus ERROR
public static PhoneStatus[] values()
for (PhoneStatus c : PhoneStatus.values()) System.out.println(c);
public static PhoneStatus valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int code()
public static PhoneStatus fromCode(int code)
Copyright © 2021. All Rights Reserved.