public enum CodecType extends Enum<CodecType>
| 限定符和类型 | 方法和说明 |
|---|---|
static CodecType |
forNumber(int value)
For number message type.
|
String |
getDescription() |
int |
getValue() |
void |
setDescription(String description) |
void |
setValue(int value) |
static CodecType |
valueOf(int value)
Value of message type.
|
static CodecType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static CodecType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final CodecType RLP
public static final CodecType JSON
public static final CodecType PROTOBUF
public static CodecType[] values()
for (CodecType c : CodecType.values()) System.out.println(c);
public static CodecType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static CodecType valueOf(int value)
value - the valuepublic static CodecType forNumber(int value)
value - the valuepublic int getValue()
public void setValue(int value)
public String getDescription()
public void setDescription(String description)
Copyright © 2022. All rights reserved.