Class MinimalBlockInfo
- java.lang.Object
-
- com.syntifi.casper.sdk.model.status.MinimalBlockInfo
-
public class MinimalBlockInfo extends java.lang.ObjectMinimal info of a `Block`- Since:
- 0.0.1
- See Also:
PeerData
-
-
Constructor Summary
Constructors Constructor Description MinimalBlockInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)PublicKeygetCreator()java.math.BigIntegergetEraId()Era IDjava.lang.StringgetHash()Block Hashjava.math.BigIntegergetHeight()Block Heightjava.lang.StringgetStateRootHash()Hex-encoded hash digestjava.sql.DategetTimeStamp()Timestamp formatted as per RFC 3339inthashCode()voidsetCreator(PublicKey creator)voidsetEraId(java.math.BigInteger eraId)Era IDvoidsetHash(java.lang.String hash)Block HashvoidsetHeight(java.math.BigInteger height)Block HeightvoidsetStateRootHash(java.lang.String stateRootHash)Hex-encoded hash digestvoidsetTimeStamp(java.sql.Date timeStamp)Timestamp formatted as per RFC 3339java.lang.StringtoString()
-
-
-
Method Detail
-
getEraId
public java.math.BigInteger getEraId()
Era ID
-
getHash
public java.lang.String getHash()
Block Hash
-
getHeight
public java.math.BigInteger getHeight()
Block Height
-
getStateRootHash
public java.lang.String getStateRootHash()
Hex-encoded hash digest
-
getTimeStamp
public java.sql.Date getTimeStamp()
Timestamp formatted as per RFC 3339
-
setEraId
public void setEraId(java.math.BigInteger eraId)
Era ID
-
setHash
public void setHash(java.lang.String hash)
Block Hash
-
setHeight
public void setHeight(java.math.BigInteger height)
Block Height
-
setStateRootHash
public void setStateRootHash(java.lang.String stateRootHash)
Hex-encoded hash digest
-
setTimeStamp
public void setTimeStamp(java.sql.Date timeStamp)
Timestamp formatted as per RFC 3339
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-