Record Class API1BlockchainTransactions

java.lang.Object
java.lang.Record
org.cardanofoundation.lob.app.blockchain_publisher.domain.core.API1BlockchainTransactions

public record API1BlockchainTransactions(String organisationId, Set<TransactionEntity> submittedTransactions, Set<TransactionEntity> remainingTransactions, long creationSlot, byte[] serialisedTxData, String receiverAddress) extends Record
  • Constructor Details

    • API1BlockchainTransactions

      public API1BlockchainTransactions(String organisationId, Set<TransactionEntity> submittedTransactions, Set<TransactionEntity> remainingTransactions, long creationSlot, byte[] serialisedTxData, String receiverAddress)
      Creates an instance of a API1BlockchainTransactions record class.
      Parameters:
      organisationId - the value for the organisationId record component
      submittedTransactions - the value for the submittedTransactions record component
      remainingTransactions - the value for the remainingTransactions 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
    • organisationId

      public String organisationId()
      Returns the value of the organisationId record component.
      Returns:
      the value of the organisationId record component
    • submittedTransactions

      public Set<TransactionEntity> submittedTransactions()
      Returns the value of the submittedTransactions record component.
      Returns:
      the value of the submittedTransactions record component
    • remainingTransactions

      public Set<TransactionEntity> remainingTransactions()
      Returns the value of the remainingTransactions record component.
      Returns:
      the value of the remainingTransactions 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