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 Details

    • API3BlockchainTransaction

      public API3BlockchainTransaction(ReportEntity report, long creationSlot, byte[] serialisedTxData, String receiverAddress)
      Creates an instance of a API3BlockchainTransaction record class.
      Parameters:
      report - the value for the report record component
      creationSlot - the value for the creationSlot record component
      serialisedTxData - the value for the serialisedTxData record component
      receiverAddress - the value for the receiverAddress record component
  • Method Details

    • equals

      public boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • report

      public ReportEntity report()
      Returns the value of the report record component.
      Returns:
      the value of the report record component
    • creationSlot

      public long creationSlot()
      Returns the value of the creationSlot record component.
      Returns:
      the value of the creationSlot record component
    • serialisedTxData

      public byte[] serialisedTxData()
      Returns the value of the serialisedTxData record component.
      Returns:
      the value of the serialisedTxData record component
    • receiverAddress

      public String receiverAddress()
      Returns the value of the receiverAddress record component.
      Returns:
      the value of the receiverAddress record component