public enum RespCode extends Enum<RespCode>
| Enum Constant and Description |
|---|
FAIL
失败的响应
|
OK
成功的响应
|
UNKNOWN
未知的响应
|
| Modifier and Type | Field and Description |
|---|---|
int |
value |
| Modifier and Type | Method and Description |
|---|---|
static RespCode |
from(int value) |
static RespCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RespCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RespCode FAIL
public static final RespCode OK
public static final RespCode UNKNOWN
public static RespCode[] values()
for (RespCode c : RespCode.values()) System.out.println(c);
public static RespCode 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 static RespCode from(int value)
Copyright © 2025. All rights reserved.