Package com.tuladb
Record Class Models.RejectCreate
java.lang.Object
java.lang.Record
com.tuladb.Models.RejectCreate
- Enclosing class:
Models
-
Constructor Summary
ConstructorsConstructorDescriptionRejectCreate(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 aRejectCreaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongamount()Returns the value of theamountrecord component.longcreditHi()Returns the value of thecreditHirecord component.longcreditLo()Returns the value of thecreditLorecord component.intcurrency()Returns the value of thecurrencyrecord component.custom()Returns the value of thecustomrecord component.longdebitHi()Returns the value of thedebitHirecord component.longdebitLo()Returns the value of thedebitLorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intledgerId()Returns the value of theledgerIdrecord component.intReturns the value of thereasonCoderecord component.longsourceId()Returns the value of thesourceIdrecord component.final StringtoString()Returns a string representation of this record class.txnId()Returns the value of thetxnIdrecord component.
-
Constructor Details
-
RejectCreate
-
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 aRejectCreaterecord class.- Parameters:
sourceId- the value for thesourceIdrecord componentledgerId- the value for theledgerIdrecord componentcurrency- the value for thecurrencyrecord componenttxnId- the value for thetxnIdrecord componentamount- the value for theamountrecord componentdebitHi- the value for thedebitHirecord componentdebitLo- the value for thedebitLorecord componentcreditHi- the value for thecreditHirecord componentcreditLo- the value for thecreditLorecord componentreasonCode- the value for thereasonCoderecord componentcustom- the value for thecustomrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
sourceId
public long sourceId()Returns the value of thesourceIdrecord component.- Returns:
- the value of the
sourceIdrecord component
-
ledgerId
public int ledgerId()Returns the value of theledgerIdrecord component.- Returns:
- the value of the
ledgerIdrecord component
-
currency
public int currency()Returns the value of thecurrencyrecord component.- Returns:
- the value of the
currencyrecord component
-
txnId
Returns the value of thetxnIdrecord component.- Returns:
- the value of the
txnIdrecord component
-
amount
public long amount()Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-
debitHi
public long debitHi()Returns the value of thedebitHirecord component.- Returns:
- the value of the
debitHirecord component
-
debitLo
public long debitLo()Returns the value of thedebitLorecord component.- Returns:
- the value of the
debitLorecord component
-
creditHi
public long creditHi()Returns the value of thecreditHirecord component.- Returns:
- the value of the
creditHirecord component
-
creditLo
public long creditLo()Returns the value of thecreditLorecord component.- Returns:
- the value of the
creditLorecord component
-
reasonCode
public int reasonCode()Returns the value of thereasonCoderecord component.- Returns:
- the value of the
reasonCoderecord component
-
custom
Returns the value of thecustomrecord component.- Returns:
- the value of the
customrecord component
-