Package com.tuladb
Record Class LedgerClient.WrappedTxnLeg
java.lang.Object
java.lang.Record
com.tuladb.LedgerClient.WrappedTxnLeg
- Enclosing class:
LedgerClient
public static record LedgerClient.WrappedTxnLeg(long transferHi, long transferLo, long debitHi, long debitLo, long creditHi, long creditLo, long amount, byte phase, int resultCode, long batchSeq, long timestamp, int batchIndex)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionWrappedTxnLeg(long transferHi, long transferLo, long debitHi, long debitLo, long creditHi, long creditLo, long amount, byte phase, int resultCode, long batchSeq, long timestamp, int batchIndex) Creates an instance of aWrappedTxnLegrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongamount()Returns the value of theamountrecord component.intReturns the value of thebatchIndexrecord component.longbatchSeq()Returns the value of thebatchSeqrecord component.longcreditHi()Returns the value of thecreditHirecord component.longcreditLo()Returns the value of thecreditLorecord 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.bytephase()Returns the value of thephaserecord component.intReturns the value of theresultCoderecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetransferHirecord component.longReturns the value of thetransferLorecord component.
-
Constructor Details
-
WrappedTxnLeg
public WrappedTxnLeg(long transferHi, long transferLo, long debitHi, long debitLo, long creditHi, long creditLo, long amount, byte phase, int resultCode, long batchSeq, long timestamp, int batchIndex) Creates an instance of aWrappedTxnLegrecord class.- Parameters:
transferHi- the value for thetransferHirecord componenttransferLo- the value for thetransferLorecord 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 componentphase- the value for thephaserecord componentresultCode- the value for theresultCoderecord componentbatchSeq- the value for thebatchSeqrecord componenttimestamp- the value for thetimestamprecord componentbatchIndex- the value for thebatchIndexrecord 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. All components in this record class are compared with '=='. -
transferHi
public long transferHi()Returns the value of thetransferHirecord component.- Returns:
- the value of the
transferHirecord component
-
transferLo
public long transferLo()Returns the value of thetransferLorecord component.- Returns:
- the value of the
transferLorecord 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
-
phase
public byte phase()Returns the value of thephaserecord component.- Returns:
- the value of the
phaserecord component
-
resultCode
public int resultCode()Returns the value of theresultCoderecord component.- Returns:
- the value of the
resultCoderecord component
-
batchSeq
public long batchSeq()Returns the value of thebatchSeqrecord component.- Returns:
- the value of the
batchSeqrecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
batchIndex
public int batchIndex()Returns the value of thebatchIndexrecord component.- Returns:
- the value of the
batchIndexrecord component
-