public class Block extends AbstractModel
Constructor and Description |
---|
Block() |
Block(Block source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long |
getBlockId()
Get 区块ID,与区块编号一致
|
Long |
getBlockNum()
Get 区块编号
|
String |
getDataHash()
Get 区块数据Hash数值
|
String |
getPreHash()
Get 前一个区块Hash
|
Long |
getTxCount()
Get 区块内的交易数量
|
void |
setBlockId(Long BlockId)
Set 区块ID,与区块编号一致
|
void |
setBlockNum(Long BlockNum)
Set 区块编号
|
void |
setDataHash(String DataHash)
Set 区块数据Hash数值
|
void |
setPreHash(String PreHash)
Set 前一个区块Hash
|
void |
setTxCount(Long TxCount)
Set 区块内的交易数量
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public Block()
public Block(Block source)
public Long getBlockNum()
public void setBlockNum(Long BlockNum)
BlockNum
- 区块编号public String getDataHash()
public void setDataHash(String DataHash)
DataHash
- 区块数据Hash数值public Long getBlockId()
public void setBlockId(Long BlockId)
BlockId
- 区块ID,与区块编号一致public String getPreHash()
public void setPreHash(String PreHash)
PreHash
- 前一个区块Hashpublic Long getTxCount()
public void setTxCount(Long TxCount)
TxCount
- 区块内的交易数量Copyright © 2021. All rights reserved.