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 theblobrecord component.longReturns the value of thedifficultyrecord component.booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpectedRewardrecord component.inthashCode()Returns a hash code value for this object.Returns the value of thehashingBlobrecord component.longheight()Returns the value of theheightrecord component.Returns the value of thenextSeedHashrecord component.prevHash()Returns the value of theprevHashrecord component.intReturns the value of thereservedOffsetrecord component.seedHash()Returns the value of theseedHashrecord component.longReturns the value of theseedHeightrecord 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 aBlockTemplaterecord class.- Parameters:
hashingBlob- the value for thehashingBlobrecord componentblob- the value for theblobrecord componentdifficulty- the value for thedifficultyrecord componentexpectedReward- the value for theexpectedRewardrecord componentheight- the value for theheightrecord componentnextSeedHash- the value for thenextSeedHashrecord componentprevHash- the value for theprevHashrecord componentreservedOffset- the value for thereservedOffsetrecord componentseedHash- the value for theseedHashrecord componentseedHeight- the value for theseedHeightrecord 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 thehashingBlobrecord component.- Returns:
- the value of the
hashingBlobrecord component
-
blob
Returns the value of theblobrecord component.- Returns:
- the value of the
blobrecord component
-
difficulty
public long difficulty()Returns the value of thedifficultyrecord component.- Returns:
- the value of the
difficultyrecord component
-
expectedReward
public long expectedReward()Returns the value of theexpectedRewardrecord component.- Returns:
- the value of the
expectedRewardrecord component
-
height
public long height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
nextSeedHash
Returns the value of thenextSeedHashrecord component.- Returns:
- the value of the
nextSeedHashrecord component
-
prevHash
Returns the value of theprevHashrecord component.- Returns:
- the value of the
prevHashrecord component
-
reservedOffset
public int reservedOffset()Returns the value of thereservedOffsetrecord component.- Returns:
- the value of the
reservedOffsetrecord component
-
seedHash
Returns the value of theseedHashrecord component.- Returns:
- the value of the
seedHashrecord component
-
seedHeight
public long seedHeight()Returns the value of theseedHeightrecord component.- Returns:
- the value of the
seedHeightrecord component
-