public class Block extends AbstractModel
Constructor and Description |
---|
Block() |
Modifier and Type | Method and Description |
---|---|
Integer |
getBlockId()
获取区块ID,与区块编号一致
|
Integer |
getBlockNum()
获取区块编号
|
String |
getDataHash()
获取区块Hash数值
|
String |
getPreHash()
获取前一个区块Hash(未使用),与区块Hash数值一致
|
Integer |
getTxCount()
获取区块内的交易数量
|
void |
setBlockId(Integer BlockId)
设置区块ID,与区块编号一致
|
void |
setBlockNum(Integer BlockNum)
设置区块编号
|
void |
setDataHash(String DataHash)
设置区块Hash数值
|
void |
setPreHash(String PreHash)
设置前一个区块Hash(未使用),与区块Hash数值一致
|
void |
setTxCount(Integer TxCount)
设置区块内的交易数量
|
void |
toMap(HashMap<String,String> map,
String prefix)
内部实现,用户禁止调用
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public Integer getBlockNum()
public void setBlockNum(Integer BlockNum)
BlockNum
- 区块编号public String getDataHash()
public void setDataHash(String DataHash)
DataHash
- 区块Hash数值public Integer getBlockId()
public void setBlockId(Integer BlockId)
BlockId
- 区块ID,与区块编号一致public String getPreHash()
public void setPreHash(String PreHash)
PreHash
- 前一个区块Hash(未使用),与区块Hash数值一致public Integer getTxCount()
public void setTxCount(Integer TxCount)
TxCount
- 区块内的交易数量Copyright © 2019. All rights reserved.