java.lang.Object
java.lang.Record
net.lageto.monero.rpc.model.BlockTemplate
public record BlockTemplate(String hashingBlob, String blob, long difficulty, long expectedReward, long height, String nextSeedHash, String prevHash, int reservedOffset, String seedHash, long seedHeight)
extends Record
Represents an un-mined Monero block.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblob()
Returns the value of theblob
record component.long
Returns the value of thedifficulty
record component.boolean
Indicates whether some other object is "equal to" this one.long
Returns the value of theexpectedReward
record component.int
hashCode()
Returns a hash code value for this object.Returns the value of thehashingBlob
record component.long
height()
Returns the value of theheight
record component.Returns the value of thenextSeedHash
record component.prevHash()
Returns the value of theprevHash
record component.int
Returns the value of thereservedOffset
record component.seedHash()
Returns the value of theseedHash
record component.long
Returns the value of theseedHeight
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
BlockTemplate
public BlockTemplate(String hashingBlob, String blob, long difficulty, long expectedReward, long height, String nextSeedHash, String prevHash, int reservedOffset, String seedHash, long seedHeight)Creates an instance of aBlockTemplate
record class.- Parameters:
hashingBlob
- the value for thehashingBlob
record componentblob
- the value for theblob
record componentdifficulty
- the value for thedifficulty
record componentexpectedReward
- the value for theexpectedReward
record componentheight
- the value for theheight
record componentnextSeedHash
- the value for thenextSeedHash
record componentprevHash
- the value for theprevHash
record componentreservedOffset
- the value for thereservedOffset
record componentseedHash
- the value for theseedHash
record componentseedHeight
- the value for theseedHeight
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
hashingBlob
Returns the value of thehashingBlob
record component.- Returns:
- the value of the
hashingBlob
record component
-
blob
Returns the value of theblob
record component.- Returns:
- the value of the
blob
record component
-
difficulty
public long difficulty()Returns the value of thedifficulty
record component.- Returns:
- the value of the
difficulty
record component
-
expectedReward
public long expectedReward()Returns the value of theexpectedReward
record component.- Returns:
- the value of the
expectedReward
record component
-
height
public long height()Returns the value of theheight
record component.- Returns:
- the value of the
height
record component
-
nextSeedHash
Returns the value of thenextSeedHash
record component.- Returns:
- the value of the
nextSeedHash
record component
-
prevHash
Returns the value of theprevHash
record component.- Returns:
- the value of the
prevHash
record component
-
reservedOffset
public int reservedOffset()Returns the value of thereservedOffset
record component.- Returns:
- the value of the
reservedOffset
record component
-
seedHash
Returns the value of theseedHash
record component.- Returns:
- the value of the
seedHash
record component
-
seedHeight
public long seedHeight()Returns the value of theseedHeight
record component.- Returns:
- the value of the
seedHeight
record component
-