Package com.tuladb

Record Class Models.TieredTransferCreate

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

public static record Models.TieredTransferCreate(long sourceId, int ledgerId, int currency, long amount, long ttlNs, byte flags, String txnId, long drPositionHi, long drPositionLo, long crPositionHi, long crPositionLo, long drSettlementHi, long drSettlementLo, long crSettlementHi, long crSettlementLo) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    TieredTransferCreate(long sourceId, int ledgerId, int currency, long amount, long ttlNs, byte flags, String txnId, long drPositionHi, long drPositionLo, long crPositionHi, long crPositionLo, long drSettlementHi, long drSettlementLo, long crSettlementHi, long crSettlementLo)
    Creates an instance of a TieredTransferCreate record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the amount record component.
    long
    Returns the value of the crPositionHi record component.
    long
    Returns the value of the crPositionLo record component.
    long
    Returns the value of the crSettlementHi record component.
    long
    Returns the value of the crSettlementLo record component.
    int
    Returns the value of the currency record component.
    long
    Returns the value of the drPositionHi record component.
    long
    Returns the value of the drPositionLo record component.
    long
    Returns the value of the drSettlementHi record component.
    long
    Returns the value of the drSettlementLo 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.
    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

    • TieredTransferCreate

      public TieredTransferCreate(long sourceId, int ledgerId, int currency, long amount, long ttlNs, byte flags, String txnId, long drPositionHi, long drPositionLo, long crPositionHi, long crPositionLo, long drSettlementHi, long drSettlementLo, long crSettlementHi, long crSettlementLo)
      Creates an instance of a TieredTransferCreate 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
      amount - the value for the amount record component
      ttlNs - the value for the ttlNs record component
      flags - the value for the flags record component
      txnId - the value for the txnId record component
      drPositionHi - the value for the drPositionHi record component
      drPositionLo - the value for the drPositionLo record component
      crPositionHi - the value for the crPositionHi record component
      crPositionLo - the value for the crPositionLo record component
      drSettlementHi - the value for the drSettlementHi record component
      drSettlementLo - the value for the drSettlementLo record component
      crSettlementHi - the value for the crSettlementHi record component
      crSettlementLo - the value for the crSettlementLo 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
    • amount

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

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

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

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

      public long drPositionHi()
      Returns the value of the drPositionHi record component.
      Returns:
      the value of the drPositionHi record component
    • drPositionLo

      public long drPositionLo()
      Returns the value of the drPositionLo record component.
      Returns:
      the value of the drPositionLo record component
    • crPositionHi

      public long crPositionHi()
      Returns the value of the crPositionHi record component.
      Returns:
      the value of the crPositionHi record component
    • crPositionLo

      public long crPositionLo()
      Returns the value of the crPositionLo record component.
      Returns:
      the value of the crPositionLo record component
    • drSettlementHi

      public long drSettlementHi()
      Returns the value of the drSettlementHi record component.
      Returns:
      the value of the drSettlementHi record component
    • drSettlementLo

      public long drSettlementLo()
      Returns the value of the drSettlementLo record component.
      Returns:
      the value of the drSettlementLo record component
    • crSettlementHi

      public long crSettlementHi()
      Returns the value of the crSettlementHi record component.
      Returns:
      the value of the crSettlementHi record component
    • crSettlementLo

      public long crSettlementLo()
      Returns the value of the crSettlementLo record component.
      Returns:
      the value of the crSettlementLo record component