public enum ChatType extends Enum<ChatType>
聊天类型
| Enum Constant and Description |
|---|
CHAT_TYPE_PRIVATE
私聊
|
CHAT_TYPE_PUBLIC
公聊
|
CHAT_TYPE_UNKNOW
未知
|
| Modifier and Type | Method and Description |
|---|---|
static ChatType |
forNumber(int value) |
int |
getNumber() |
static ChatType |
valueOf(int value) |
static ChatType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChatType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChatType CHAT_TYPE_UNKNOW
未知
CHAT_TYPE_UNKNOW = 0;public static final ChatType CHAT_TYPE_PUBLIC
公聊
CHAT_TYPE_PUBLIC = 1;public static final ChatType CHAT_TYPE_PRIVATE
私聊
CHAT_TYPE_PRIVATE = 2;public static ChatType[] values()
for (ChatType c : ChatType.values()) System.out.println(c);
public static ChatType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
public static ChatType valueOf(int value)
public static ChatType forNumber(int value)
Copyright © 2018. All rights reserved.