Package com.tuladb
Record Class Models.AccountBalance
java.lang.Object
java.lang.Record
com.tuladb.Models.AccountBalance
- Enclosing class:
Models
public static record Models.AccountBalance(int ledgerId, int currency, short tier, short flags, long creditsPosted, long debitsPosted, long creditsPending, long debitsPending, long postedBalance, long availableBalance)
extends Record
One row of listAccountBalances: the balance one id holds in one currency
of a ledger (engine WireAccountBalanceRow, 64 bytes).
-
Constructor Summary
ConstructorsConstructorDescriptionAccountBalance(int ledgerId, int currency, short tier, short flags, long creditsPosted, long debitsPosted, long creditsPending, long debitsPending, long postedBalance, long availableBalance) Creates an instance of aAccountBalancerecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theavailableBalancerecord component.longReturns the value of thecreditsPendingrecord component.longReturns the value of thecreditsPostedrecord component.intcurrency()Returns the value of thecurrencyrecord component.longReturns the value of thedebitsPendingrecord component.longReturns the value of thedebitsPostedrecord component.final booleanIndicates whether some other object is "equal to" this one.shortflags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.booleaninactive()True iff the engine marks the account inactive (ACCT_INACTIVE).intledgerId()Returns the value of theledgerIdrecord component.longReturns the value of thepostedBalancerecord component.shorttier()Returns the value of thetierrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AccountBalance
public AccountBalance(int ledgerId, int currency, short tier, short flags, long creditsPosted, long debitsPosted, long creditsPending, long debitsPending, long postedBalance, long availableBalance) Creates an instance of aAccountBalancerecord class.- Parameters:
ledgerId- the value for theledgerIdrecord componentcurrency- the value for thecurrencyrecord componenttier- the value for thetierrecord componentflags- the value for theflagsrecord componentcreditsPosted- the value for thecreditsPostedrecord componentdebitsPosted- the value for thedebitsPostedrecord componentcreditsPending- the value for thecreditsPendingrecord componentdebitsPending- the value for thedebitsPendingrecord componentpostedBalance- the value for thepostedBalancerecord componentavailableBalance- the value for theavailableBalancerecord component
-
-
Method Details
-
inactive
public boolean inactive()True iff the engine marks the account inactive (ACCT_INACTIVE). -
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 '=='. -
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
-
tier
public short tier()Returns the value of thetierrecord component.- Returns:
- the value of the
tierrecord component
-
flags
public short flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-
creditsPosted
public long creditsPosted()Returns the value of thecreditsPostedrecord component.- Returns:
- the value of the
creditsPostedrecord component
-
debitsPosted
public long debitsPosted()Returns the value of thedebitsPostedrecord component.- Returns:
- the value of the
debitsPostedrecord component
-
creditsPending
public long creditsPending()Returns the value of thecreditsPendingrecord component.- Returns:
- the value of the
creditsPendingrecord component
-
debitsPending
public long debitsPending()Returns the value of thedebitsPendingrecord component.- Returns:
- the value of the
debitsPendingrecord component
-
postedBalance
public long postedBalance()Returns the value of thepostedBalancerecord component.- Returns:
- the value of the
postedBalancerecord component
-
availableBalance
public long availableBalance()Returns the value of theavailableBalancerecord component.- Returns:
- the value of the
availableBalancerecord component
-