Class MinimalBlockInfo
- java.lang.Object
-
- com.syntifi.casper.sdk.model.status.MinimalBlockInfo
-
public class MinimalBlockInfo extends java.lang.Object
Minimal 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 boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
PublicKey
getCreator()
java.math.BigInteger
getEraId()
Era IDjava.lang.String
getHash()
Block Hashjava.math.BigInteger
getHeight()
Block Heightjava.lang.String
getStateRootHash()
Hex-encoded hash digestjava.sql.Date
getTimeStamp()
Timestamp formatted as per RFC 3339int
hashCode()
void
setCreator(PublicKey creator)
void
setEraId(java.math.BigInteger eraId)
Era IDvoid
setHash(java.lang.String hash)
Block Hashvoid
setHeight(java.math.BigInteger height)
Block Heightvoid
setStateRootHash(java.lang.String stateRootHash)
Hex-encoded hash digestvoid
setTimeStamp(java.sql.Date timeStamp)
Timestamp formatted as per RFC 3339java.lang.String
toString()
-
-
-
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:
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
-
-