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
ConstructorsConstructorDescriptionTieredTransferCreate(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 aTieredTransferCreaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongamount()Returns the value of theamountrecord component.longReturns the value of thecrPositionHirecord component.longReturns the value of thecrPositionLorecord component.longReturns the value of thecrSettlementHirecord component.longReturns the value of thecrSettlementLorecord component.intcurrency()Returns the value of thecurrencyrecord component.longReturns the value of thedrPositionHirecord component.longReturns the value of thedrPositionLorecord component.longReturns the value of thedrSettlementHirecord component.longReturns the value of thedrSettlementLorecord 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.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
-
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 aTieredTransferCreaterecord class.- Parameters:
sourceId- the value for thesourceIdrecord componentledgerId- the value for theledgerIdrecord componentcurrency- the value for thecurrencyrecord componentamount- the value for theamountrecord componentttlNs- the value for thettlNsrecord componentflags- the value for theflagsrecord componenttxnId- the value for thetxnIdrecord componentdrPositionHi- the value for thedrPositionHirecord componentdrPositionLo- the value for thedrPositionLorecord componentcrPositionHi- the value for thecrPositionHirecord componentcrPositionLo- the value for thecrPositionLorecord componentdrSettlementHi- the value for thedrSettlementHirecord componentdrSettlementLo- the value for thedrSettlementLorecord componentcrSettlementHi- the value for thecrSettlementHirecord componentcrSettlementLo- the value for thecrSettlementLorecord 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
-
amount
public long amount()Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-
ttlNs
public long ttlNs()Returns the value of thettlNsrecord component.- Returns:
- the value of the
ttlNsrecord component
-
flags
public byte flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-
txnId
Returns the value of thetxnIdrecord component.- Returns:
- the value of the
txnIdrecord component
-
drPositionHi
public long drPositionHi()Returns the value of thedrPositionHirecord component.- Returns:
- the value of the
drPositionHirecord component
-
drPositionLo
public long drPositionLo()Returns the value of thedrPositionLorecord component.- Returns:
- the value of the
drPositionLorecord component
-
crPositionHi
public long crPositionHi()Returns the value of thecrPositionHirecord component.- Returns:
- the value of the
crPositionHirecord component
-
crPositionLo
public long crPositionLo()Returns the value of thecrPositionLorecord component.- Returns:
- the value of the
crPositionLorecord component
-
drSettlementHi
public long drSettlementHi()Returns the value of thedrSettlementHirecord component.- Returns:
- the value of the
drSettlementHirecord component
-
drSettlementLo
public long drSettlementLo()Returns the value of thedrSettlementLorecord component.- Returns:
- the value of the
drSettlementLorecord component
-
crSettlementHi
public long crSettlementHi()Returns the value of thecrSettlementHirecord component.- Returns:
- the value of the
crSettlementHirecord component
-
crSettlementLo
public long crSettlementLo()Returns the value of thecrSettlementLorecord component.- Returns:
- the value of the
crSettlementLorecord component
-