Record Class AccountLedgerSummaryDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.account.AccountLedgerSummaryDTO
- Record Components:
openingBalance- balance before the first activityamountChanged- actual account balance changeclosingBalance- balance after the final activityactivityCount- total activities representedmatchingActivityCount- activities matching the selected typematchingAmountChanged- signed matching activity totalpendingRealizedAmount- realized partial-close result not yet included in the ledgerbalanceIncludingPending- closing balance plus pending realized partial closespendingPositionCount- partially closed positions contributing to the pending resultfirstActivityAt- first activity timestamplastActivityAt- last activity timestamp
public record AccountLedgerSummaryDTO(double openingBalance, double amountChanged, double closingBalance, int activityCount, int matchingActivityCount, double matchingAmountChanged, double pendingRealizedAmount, double balanceIncludingPending, int pendingPositionCount, LocalDateTime firstActivityAt, LocalDateTime lastActivityAt)
extends Record
Summary metrics for an account-ledger report.
- Version:
- 3.0.1
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionAccountLedgerSummaryDTO(double openingBalance, double amountChanged, double closingBalance, int activityCount, int matchingActivityCount, double matchingAmountChanged, double pendingRealizedAmount, double balanceIncludingPending, int pendingPositionCount, LocalDateTime firstActivityAt, LocalDateTime lastActivityAt) Creates an instance of aAccountLedgerSummaryDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactivityCountrecord component.doubleReturns the value of theamountChangedrecord component.doubleReturns the value of thebalanceIncludingPendingrecord component.doubleReturns the value of theclosingBalancerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefirstActivityAtrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelastActivityAtrecord component.intReturns the value of thematchingActivityCountrecord component.doubleReturns the value of thematchingAmountChangedrecord component.doubleReturns the value of theopeningBalancerecord component.intReturns the value of thependingPositionCountrecord component.doubleReturns the value of thependingRealizedAmountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AccountLedgerSummaryDTO
public AccountLedgerSummaryDTO(double openingBalance, double amountChanged, double closingBalance, int activityCount, int matchingActivityCount, double matchingAmountChanged, double pendingRealizedAmount, double balanceIncludingPending, int pendingPositionCount, LocalDateTime firstActivityAt, LocalDateTime lastActivityAt) Creates an instance of aAccountLedgerSummaryDTOrecord class.- Parameters:
openingBalance- the value for theopeningBalancerecord componentamountChanged- the value for theamountChangedrecord componentclosingBalance- the value for theclosingBalancerecord componentactivityCount- the value for theactivityCountrecord componentmatchingActivityCount- the value for thematchingActivityCountrecord componentmatchingAmountChanged- the value for thematchingAmountChangedrecord componentpendingRealizedAmount- the value for thependingRealizedAmountrecord componentbalanceIncludingPending- the value for thebalanceIncludingPendingrecord componentpendingPositionCount- the value for thependingPositionCountrecord componentfirstActivityAt- the value for thefirstActivityAtrecord componentlastActivityAt- the value for thelastActivityAtrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
openingBalance
public double openingBalance()Returns the value of theopeningBalancerecord component.- Returns:
- the value of the
openingBalancerecord component
-
amountChanged
public double amountChanged()Returns the value of theamountChangedrecord component.- Returns:
- the value of the
amountChangedrecord component
-
closingBalance
public double closingBalance()Returns the value of theclosingBalancerecord component.- Returns:
- the value of the
closingBalancerecord component
-
activityCount
public int activityCount()Returns the value of theactivityCountrecord component.- Returns:
- the value of the
activityCountrecord component
-
matchingActivityCount
public int matchingActivityCount()Returns the value of thematchingActivityCountrecord component.- Returns:
- the value of the
matchingActivityCountrecord component
-
matchingAmountChanged
public double matchingAmountChanged()Returns the value of thematchingAmountChangedrecord component.- Returns:
- the value of the
matchingAmountChangedrecord component
-
pendingRealizedAmount
public double pendingRealizedAmount()Returns the value of thependingRealizedAmountrecord component.- Returns:
- the value of the
pendingRealizedAmountrecord component
-
balanceIncludingPending
public double balanceIncludingPending()Returns the value of thebalanceIncludingPendingrecord component.- Returns:
- the value of the
balanceIncludingPendingrecord component
-
pendingPositionCount
public int pendingPositionCount()Returns the value of thependingPositionCountrecord component.- Returns:
- the value of the
pendingPositionCountrecord component
-
firstActivityAt
Returns the value of thefirstActivityAtrecord component.- Returns:
- the value of the
firstActivityAtrecord component
-
lastActivityAt
Returns the value of thelastActivityAtrecord component.- Returns:
- the value of the
lastActivityAtrecord component
-