public enum DLedgerRequestCode extends java.lang.Enum<DLedgerRequestCode>
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getCode() |
java.lang.String |
getDesc() |
java.lang.String |
toString() |
static DLedgerRequestCode |
valueOf(int code) |
static DLedgerRequestCode |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static DLedgerRequestCode[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final DLedgerRequestCode UNKNOWN
public static final DLedgerRequestCode METADATA
public static final DLedgerRequestCode APPEND
public static final DLedgerRequestCode GET
public static final DLedgerRequestCode VOTE
public static final DLedgerRequestCode HEART_BEAT
public static final DLedgerRequestCode PULL
public static final DLedgerRequestCode PUSH
public static DLedgerRequestCode[] values()
for (DLedgerRequestCode c : DLedgerRequestCode.values()) System.out.println(c);
public static DLedgerRequestCode valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public static DLedgerRequestCode valueOf(int code)
public int getCode()
public java.lang.String getDesc()
public java.lang.String toString()
toString 在类中 java.lang.Enum<DLedgerRequestCode>Copyright © 2019. All Rights Reserved.