Package com.tuladb

Record Class Models.TransferCreate

java.lang.Object
java.lang.Record
com.tuladb.Models.TransferCreate
Enclosing class:
Models

public static record Models.TransferCreate(long sourceId, int ledgerId, int currency, long debitHi, long debitLo, long creditHi, long creditLo, long amount, String txnId, byte flags, long ttlNs, int rejectReasonCode) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    TransferCreate(long sourceId, int ledgerId, int currency, long debitHi, long debitLo, long creditHi, long creditLo, long amount, String txnId, byte flags, long ttlNs)
     
    TransferCreate(long sourceId, int ledgerId, int currency, long debitHi, long debitLo, long creditHi, long creditLo, long amount, String txnId, byte flags, long ttlNs, int rejectReasonCode)
    Creates an instance of a TransferCreate record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the amount record component.
    long
    Returns the value of the creditHi record component.
    long
    Returns the value of the creditLo record component.
    int
    Returns the value of the currency 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.
    byte
    Returns the value of the flags record component.
    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 rejectReasonCode record component.
    long
    Returns the value of the sourceId record component.
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the ttlNs 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

    • TransferCreate

      public TransferCreate(long sourceId, int ledgerId, int currency, long debitHi, long debitLo, long creditHi, long creditLo, long amount, String txnId, byte flags, long ttlNs)
    • TransferCreate

      public TransferCreate(long sourceId, int ledgerId, int currency, long debitHi, long debitLo, long creditHi, long creditLo, long amount, String txnId, byte flags, long ttlNs, int rejectReasonCode)
      Creates an instance of a TransferCreate record class.
      Parameters:
      sourceId - the value for the sourceId record component
      ledgerId - the value for the ledgerId record component
      currency - the value for the currency 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
      txnId - the value for the txnId record component
      flags - the value for the flags record component
      ttlNs - the value for the ttlNs record component
      rejectReasonCode - the value for the rejectReasonCode 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
    • ledgerId

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

      public int currency()
      Returns the value of the currency record component.
      Returns:
      the value of the currency 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
    • txnId

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

      public byte flags()
      Returns the value of the flags record component.
      Returns:
      the value of the flags record component
    • ttlNs

      public long ttlNs()
      Returns the value of the ttlNs record component.
      Returns:
      the value of the ttlNs record component
    • rejectReasonCode

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