Package com.tuladb

Record Class LedgerClient.WrappedTxn

java.lang.Object
java.lang.Record
com.tuladb.LedgerClient.WrappedTxn
Enclosing class:
LedgerClient

public static record LedgerClient.WrappedTxn(long sourceId, String txnId, int ledgerId, long batchSeq, long timestamp, byte phase, int resultCode, String statusName, int legCount, long totalLegAmount, List<LedgerClient.WrappedTxnLeg> legs, int batchIndex) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    WrappedTxn(long sourceId, String txnId, int ledgerId, long batchSeq, long timestamp, byte phase, int resultCode, String statusName, int legCount, long totalLegAmount, List<LedgerClient.WrappedTxnLeg> legs, int batchIndex)
    Creates an instance of a WrappedTxn record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the batchIndex record component.
    long
    Returns the value of the batchSeq record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the ledgerId record component.
    int
    Returns the value of the legCount record component.
    Returns the value of the legs record component.
    byte
    Returns the value of the phase record component.
    int
    Returns the value of the resultCode record component.
    long
    Returns the value of the sourceId record component.
    Returns the value of the statusName record component.
    long
    Returns the value of the timestamp record component.
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the totalLegAmount record component.
    Returns the value of the txnId record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • WrappedTxn

      public WrappedTxn(long sourceId, String txnId, int ledgerId, long batchSeq, long timestamp, byte phase, int resultCode, String statusName, int legCount, long totalLegAmount, List<LedgerClient.WrappedTxnLeg> legs, int batchIndex)
      Creates an instance of a WrappedTxn record class.
      Parameters:
      sourceId - the value for the sourceId record component
      txnId - the value for the txnId record component
      ledgerId - the value for the ledgerId record component
      batchSeq - the value for the batchSeq record component
      timestamp - the value for the timestamp record component
      phase - the value for the phase record component
      resultCode - the value for the resultCode record component
      statusName - the value for the statusName record component
      legCount - the value for the legCount record component
      totalLegAmount - the value for the totalLegAmount record component
      legs - the value for the legs record component
      batchIndex - the value for the batchIndex record component
  • Method Details

    • 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
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final 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.
    • sourceId

      public long sourceId()
      Returns the value of the sourceId record component.
      Returns:
      the value of the sourceId record component
    • txnId

      public String txnId()
      Returns the value of the txnId record component.
      Returns:
      the value of the txnId record component
    • ledgerId

      public int ledgerId()
      Returns the value of the ledgerId record component.
      Returns:
      the value of the ledgerId record component
    • batchSeq

      public long batchSeq()
      Returns the value of the batchSeq record component.
      Returns:
      the value of the batchSeq record component
    • timestamp

      public long timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component
    • phase

      public byte phase()
      Returns the value of the phase record component.
      Returns:
      the value of the phase record component
    • resultCode

      public int resultCode()
      Returns the value of the resultCode record component.
      Returns:
      the value of the resultCode record component
    • statusName

      public String statusName()
      Returns the value of the statusName record component.
      Returns:
      the value of the statusName record component
    • legCount

      public int legCount()
      Returns the value of the legCount record component.
      Returns:
      the value of the legCount record component
    • totalLegAmount

      public long totalLegAmount()
      Returns the value of the totalLegAmount record component.
      Returns:
      the value of the totalLegAmount record component
    • legs

      Returns the value of the legs record component.
      Returns:
      the value of the legs record component
    • batchIndex

      public int batchIndex()
      Returns the value of the batchIndex record component.
      Returns:
      the value of the batchIndex record component