Class JsonBlock
- java.lang.Object
-
- com.syntifi.casper.sdk.model.block.JsonBlock
-
public class JsonBlock extends java.lang.Object
A JSON-friendly representation of `Block`- Since:
- 0.0.1
- See Also:
JsonBlockData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JsonBlock.JsonBlockBuilder
-
Constructor Summary
Constructors Constructor Description JsonBlock()
JsonBlock(java.lang.String hash, JsonBlockHeader header, JsonBlockBody body, java.util.List<JsonProof> proofs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonBlock.JsonBlockBuilder
builder()
JsonBlockBody
getBody()
java.lang.String
getHash()
The block's hash.JsonBlockHeader
getHeader()
java.util.List<JsonProof>
getProofs()
List ofJsonProof
void
setBody(JsonBlockBody body)
void
setHash(java.lang.String hash)
The block's hash.void
setHeader(JsonBlockHeader header)
void
setProofs(java.util.List<JsonProof> proofs)
List ofJsonProof
-
-
-
Constructor Detail
-
JsonBlock
public JsonBlock(java.lang.String hash, JsonBlockHeader header, JsonBlockBody body, java.util.List<JsonProof> proofs)
-
JsonBlock
public JsonBlock()
-
-
Method Detail
-
builder
public static JsonBlock.JsonBlockBuilder builder()
-
getHash
public java.lang.String getHash()
The block's hash.
-
getHeader
public JsonBlockHeader getHeader()
-
getBody
public JsonBlockBody getBody()
-
setHash
public void setHash(java.lang.String hash)
The block's hash.
-
setHeader
public void setHeader(JsonBlockHeader header)
-
setBody
public void setBody(JsonBlockBody body)
-
-