public enum JoinGroupResult extends Enum<JoinGroupResult>
加入群组申请的结果enum
JoinGroupResult
Enum Constant and Description |
---|
JOIN_GROUP_RESULT_GROUP_FULL
组满
|
JOIN_GROUP_RESULT_IN_BACKLIST
在黑名单中
|
JOIN_GROUP_RESULT_NOT_EXIST
组不存在
|
JOIN_GROUP_RESULT_OK
允许进入
|
JOIN_GROUP_RESULT_TAKEOUTED
被踢
|
JOIN_GROUP_RESULT_UNKNOW
不允许进入,原因为其它
|
Modifier and Type | Method and Description |
---|---|
static JoinGroupResult |
forNumber(int value) |
int |
getNumber() |
static JoinGroupResult |
valueOf(int value) |
static JoinGroupResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JoinGroupResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JoinGroupResult JOIN_GROUP_RESULT_UNKNOW
不允许进入,原因为其它
JOIN_GROUP_RESULT_UNKNOW = 0;
public static final JoinGroupResult JOIN_GROUP_RESULT_OK
允许进入
JOIN_GROUP_RESULT_OK = 1;
public static final JoinGroupResult JOIN_GROUP_RESULT_NOT_EXIST
组不存在
JOIN_GROUP_RESULT_NOT_EXIST = 2;
public static final JoinGroupResult JOIN_GROUP_RESULT_GROUP_FULL
组满
JOIN_GROUP_RESULT_GROUP_FULL = 3;
public static final JoinGroupResult JOIN_GROUP_RESULT_IN_BACKLIST
在黑名单中
JOIN_GROUP_RESULT_IN_BACKLIST = 4;
public static final JoinGroupResult JOIN_GROUP_RESULT_TAKEOUTED
被踢
JOIN_GROUP_RESULT_TAKEOUTED = 5;
public static JoinGroupResult[] values()
for (JoinGroupResult c : JoinGroupResult.values()) System.out.println(c);
public static JoinGroupResult 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 JoinGroupResult valueOf(int value)
public static JoinGroupResult forNumber(int value)
Copyright © 2018. All rights reserved.