public enum MessageStatus extends java.lang.Enum<MessageStatus>
枚举常量和说明 |
---|
created |
receive_fail |
receive_going |
receive_success |
send_cancelled |
send_draft |
send_fail |
send_going |
send_success |
限定符和类型 | 方法和说明 |
---|---|
static MessageStatus |
get(int index) |
static boolean |
isReceiveStatus(MessageStatus status) |
static boolean |
isSendStatus(MessageStatus status) |
static MessageStatus |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static MessageStatus[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final MessageStatus created
public static final MessageStatus send_cancelled
public static final MessageStatus send_success
public static final MessageStatus send_fail
public static final MessageStatus send_going
public static final MessageStatus send_draft
public static final MessageStatus receive_success
public static final MessageStatus receive_going
public static final MessageStatus receive_fail
public static MessageStatus[] values()
for (MessageStatus c : MessageStatus.values()) System.out.println(c);
public static MessageStatus valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public static MessageStatus get(int index)
public static boolean isSendStatus(MessageStatus status)
public static boolean isReceiveStatus(MessageStatus status)