| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
count
Description: 业务属性
|
protected String |
createrId
创建者ID
|
protected String |
createrName
创建者
|
protected String |
hash |
protected Long |
height |
protected String |
merkleRoot |
protected String |
preHash |
protected String |
sign |
protected String |
timestamp |
protected List<T> |
trans |
| 构造器和说明 |
|---|
Block() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
check()
block自身检查,验证hash、merkle_tree是否正确
|
int |
getCount() |
String |
getCreaterId() |
String |
getCreaterName() |
String |
getHash() |
Long |
getHeight() |
String |
getMerkleRoot() |
String |
getPreHash() |
String |
getSign() |
String |
getTimestamp() |
List<T> |
getTrans() |
void |
setCount(int count) |
void |
setCreaterId(String createrId) |
void |
setCreaterName(String createrName) |
void |
setHash(String hash) |
void |
setHeight(Long height) |
void |
setMerkleRoot(String merkleRoot) |
void |
setPreHash(String preHash) |
void |
setSign(String sign) |
void |
setTimestamp(String timestamp) |
void |
setTrans(List<T> trans) |
String |
toJsonString() |
protected Long height
protected String hash
protected String preHash
protected String merkleRoot
protected String timestamp
protected String sign
protected int count
protected String createrName
protected String createrId
public Long getHeight()
public void setHeight(Long height)
public String getHash()
public void setHash(String hash)
public String getPreHash()
public void setPreHash(String preHash)
public String getMerkleRoot()
public void setMerkleRoot(String merkleRoot)
public String getTimestamp()
public void setTimestamp(String timestamp)
public int getCount()
public void setCount(int count)
public String getSign()
public void setSign(String sign)
public String getCreaterName()
public void setCreaterName(String createrName)
public String getCreaterId()
public void setCreaterId(String createrId)
public String toJsonString()
public void check()
Copyright © 2019. All Rights Reserved.