Package com.tuladb

Record Class LedgerClient.WrappedTxnLeg

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

public static record LedgerClient.WrappedTxnLeg(long transferHi, long transferLo, long debitHi, long debitLo, long creditHi, long creditLo, long amount, byte phase, int resultCode, long batchSeq, long timestamp, int batchIndex) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    WrappedTxnLeg(long transferHi, long transferLo, long debitHi, long debitLo, long creditHi, long creditLo, long amount, byte phase, int resultCode, long batchSeq, long timestamp, int batchIndex)
    Creates an instance of a WrappedTxnLeg record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the amount record component.
    int
    Returns the value of the batchIndex record component.
    long
    Returns the value of the batchSeq record component.
    long
    Returns the value of the creditHi record component.
    long
    Returns the value of the creditLo record component.
    long
    Returns the value of the debitHi record component.
    long
    Returns the value of the debitLo record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    byte
    Returns the value of the phase record component.
    int
    Returns the value of the resultCode 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 transferHi record component.
    long
    Returns the value of the transferLo record component.

    Methods inherited from class java.lang.Object

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

    • WrappedTxnLeg

      public WrappedTxnLeg(long transferHi, long transferLo, long debitHi, long debitLo, long creditHi, long creditLo, long amount, byte phase, int resultCode, long batchSeq, long timestamp, int batchIndex)
      Creates an instance of a WrappedTxnLeg record class.
      Parameters:
      transferHi - the value for the transferHi record component
      transferLo - the value for the transferLo record component
      debitHi - the value for the debitHi record component
      debitLo - the value for the debitLo record component
      creditHi - the value for the creditHi record component
      creditLo - the value for the creditLo record component
      amount - the value for the amount record component
      phase - the value for the phase record component
      resultCode - the value for the resultCode record component
      batchSeq - the value for the batchSeq record component
      timestamp - the value for the timestamp 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. All components in this record class 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.
    • transferHi

      public long transferHi()
      Returns the value of the transferHi record component.
      Returns:
      the value of the transferHi record component
    • transferLo

      public long transferLo()
      Returns the value of the transferLo record component.
      Returns:
      the value of the transferLo record component
    • debitHi

      public long debitHi()
      Returns the value of the debitHi record component.
      Returns:
      the value of the debitHi record component
    • debitLo

      public long debitLo()
      Returns the value of the debitLo record component.
      Returns:
      the value of the debitLo record component
    • creditHi

      public long creditHi()
      Returns the value of the creditHi record component.
      Returns:
      the value of the creditHi record component
    • creditLo

      public long creditLo()
      Returns the value of the creditLo record component.
      Returns:
      the value of the creditLo record component
    • amount

      public long amount()
      Returns the value of the amount record component.
      Returns:
      the value of the amount 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
    • 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
    • batchIndex

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