public class Extension extends MychainObject
| 限定符和类型 | 方法和说明 |
|---|---|
void |
fromJson(com.alibaba.fastjson.JSONObject jsonObject)
Decode message from json object.
|
void |
fromRlp(RlpList list)
Decode message from rlp bytes.
|
int |
getKey()
Gets key.
|
byte[] |
getValue() |
void |
setKey(int key)
Sets key.
|
void |
setValue(byte[] value) |
void |
toJson(com.alibaba.fastjson.JSONObject jsonObject)
Encode message to json object.
|
byte[] |
toRlp()
Encode message to rlp bytes.
|
toStringpublic Extension(int key,
byte[] value)
key - the keyvalue - the valuepublic Extension()
public int getKey()
public void setKey(int key)
key - the keypublic byte[] getValue()
public void setValue(byte[] value)
public byte[] toRlp()
toRlp 在类中 MychainObjectpublic void fromRlp(RlpList list)
fromRlp 在类中 MychainObjectlist - the rlp bytespublic void toJson(com.alibaba.fastjson.JSONObject jsonObject)
toJson 在类中 MychainObjectjsonObject - the json objectpublic void fromJson(com.alibaba.fastjson.JSONObject jsonObject)
fromJson 在类中 MychainObjectjsonObject - the json objectCopyright © 2022. All rights reserved.