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