Class JsonBlock


  • public class JsonBlock
    extends java.lang.Object
    A JSON-friendly representation of `Block`
    Since:
    0.0.1
    See Also:
    JsonBlockData
    • Constructor Detail

      • JsonBlock

        public JsonBlock()
    • Method Detail

      • getHash

        public java.lang.String getHash()
        The block's hash.
      • setHash

        public void setHash​(java.lang.String hash)
        The block's hash.
      • setProofs

        public void setProofs​(java.util.List<JsonProof> proofs)
        List of JsonProof
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object