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
-
-
Constructor Summary
Constructors Constructor Description JsonBlock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
JsonBlockBody
getBody()
java.lang.String
getHash()
The block's hash.JsonBlockHeader
getHeader()
java.util.List<JsonProof>
getProofs()
List ofJsonProof
int
hashCode()
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
java.lang.String
toString()
-
-
-
Method Detail
-
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)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-