Package com.tuladb
Record Class Models.TransferCreate
java.lang.Object
java.lang.Record
com.tuladb.Models.TransferCreate
- Enclosing class:
Models
-
Constructor Summary
ConstructorsConstructorDescriptionTransferCreate(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 aTransferCreaterecord 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.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.byteflags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.intledgerId()Returns the value of theledgerIdrecord component.intReturns the value of therejectReasonCoderecord component.longsourceId()Returns the value of thesourceIdrecord component.final StringtoString()Returns a string representation of this record class.longttlNs()Returns the value of thettlNsrecord component.txnId()Returns the value of thetxnIdrecord component.
-
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 aTransferCreaterecord class.- Parameters:
sourceId- the value for thesourceIdrecord componentledgerId- the value for theledgerIdrecord componentcurrency- the value for thecurrencyrecord componentdebitHi- the value for thedebitHirecord componentdebitLo- the value for thedebitLorecord componentcreditHi- the value for thecreditHirecord componentcreditLo- the value for thecreditLorecord componentamount- the value for theamountrecord componenttxnId- the value for thetxnIdrecord componentflags- the value for theflagsrecord componentttlNs- the value for thettlNsrecord componentrejectReasonCode- the value for therejectReasonCoderecord 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
-
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
-
amount
public long amount()Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-
txnId
Returns the value of thetxnIdrecord component.- Returns:
- the value of the
txnIdrecord component
-
flags
public byte flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-
ttlNs
public long ttlNs()Returns the value of thettlNsrecord component.- Returns:
- the value of the
ttlNsrecord component
-
rejectReasonCode
public int rejectReasonCode()Returns the value of therejectReasonCoderecord component.- Returns:
- the value of the
rejectReasonCoderecord component
-