public class MetricsAccCounterInfo extends MychainObject
| 构造器和说明 |
|---|
MetricsAccCounterInfo() |
MetricsAccCounterInfo(MetricsType type,
BaseFixedSizeUnsignedInteger.Fixed64BitUnsignedInteger counter) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
fromJson(com.alibaba.fastjson.JSONObject jsonObject)
Decode message from json object.
|
void |
fromRlp(RlpList list)
Decode message from rlp bytes.
|
BaseFixedSizeUnsignedInteger.Fixed64BitUnsignedInteger |
getCounter()
Gets counter.
|
MetricsType |
getType()
Gets type.
|
void |
setCounter(BaseFixedSizeUnsignedInteger.Fixed64BitUnsignedInteger counter)
Sets counter.
|
void |
setType(MetricsType type)
Sets type.
|
void |
toJson(com.alibaba.fastjson.JSONObject jsonObject)
Encode message to json object.
|
byte[] |
toRlp()
Encode message to rlp bytes.
|
toStringpublic MetricsAccCounterInfo(MetricsType type, BaseFixedSizeUnsignedInteger.Fixed64BitUnsignedInteger counter)
public MetricsAccCounterInfo()
public MetricsType getType()
public void setType(MetricsType type)
type - the typepublic BaseFixedSizeUnsignedInteger.Fixed64BitUnsignedInteger getCounter()
public void setCounter(BaseFixedSizeUnsignedInteger.Fixed64BitUnsignedInteger counter)
counter - the counterpublic 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.