Package com.tuladb

Record Class Models.RejectCreate

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

public static record Models.RejectCreate(long sourceId, int ledgerId, int currency, String txnId, long amount, long debitHi, long debitLo, long creditHi, long creditLo, int reasonCode, Object custom) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    RejectCreate(long sourceId, int ledgerId, int currency, String txnId, long amount, int reasonCode, Object custom)
     
    RejectCreate(long sourceId, int ledgerId, int currency, String txnId, long amount, long debitHi, long debitLo, long creditHi, long creditLo, int reasonCode, Object custom)
    Creates an instance of a RejectCreate 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.
    Returns the value of the custom 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.
    int
    Returns the value of the ledgerId record component.
    int
    Returns the value of the reasonCode record component.
    long
    Returns the value of the sourceId record component.
    final String
    Returns a string representation of this record class.
    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

    • RejectCreate

      public RejectCreate(long sourceId, int ledgerId, int currency, String txnId, long amount, int reasonCode, Object custom)
    • RejectCreate

      public RejectCreate(long sourceId, int ledgerId, int currency, String txnId, long amount, long debitHi, long debitLo, long creditHi, long creditLo, int reasonCode, Object custom)
      Creates an instance of a RejectCreate 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
      txnId - the value for the txnId record component
      amount - the value for the amount 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
      reasonCode - the value for the reasonCode record component
      custom - the value for the custom 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
    • txnId

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

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

      public int reasonCode()
      Returns the value of the reasonCode record component.
      Returns:
      the value of the reasonCode record component
    • custom

      public Object custom()
      Returns the value of the custom record component.
      Returns:
      the value of the custom record component