Record Class API3BlockchainTransaction
java.lang.Object
java.lang.Record
org.cardanofoundation.lob.app.blockchain_publisher.domain.core.API3BlockchainTransaction
public record API3BlockchainTransaction(ReportEntity report, long creationSlot, byte[] serialisedTxData, String receiverAddress)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAPI3BlockchainTransaction(ReportEntity report, long creationSlot, byte[] serialisedTxData, String receiverAddress) Creates an instance of aAPI3BlockchainTransactionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thecreationSlotrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.Returns the value of thereceiverAddressrecord component.report()Returns the value of thereportrecord component.byte[]Returns the value of theserialisedTxDatarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
API3BlockchainTransaction
public API3BlockchainTransaction(ReportEntity report, long creationSlot, byte[] serialisedTxData, String receiverAddress) Creates an instance of aAPI3BlockchainTransactionrecord class.- Parameters:
report- the value for thereportrecord componentcreationSlot- the value for thecreationSlotrecord componentserialisedTxData- the value for theserialisedTxDatarecord componentreceiverAddress- the value for thereceiverAddressrecord component
-
-
Method Details
-
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 '=='. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
report
Returns the value of thereportrecord component.- Returns:
- the value of the
reportrecord component
-
creationSlot
public long creationSlot()Returns the value of thecreationSlotrecord component.- Returns:
- the value of the
creationSlotrecord component
-
serialisedTxData
public byte[] serialisedTxData()Returns the value of theserialisedTxDatarecord component.- Returns:
- the value of the
serialisedTxDatarecord component
-
receiverAddress
Returns the value of thereceiverAddressrecord component.- Returns:
- the value of the
receiverAddressrecord component
-