Record Class AccountLedgerPointDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.account.AccountLedgerPointDTO
- Record Components:
occurredAt- timestamp of the exact or last aggregated activitysequenceNumber- sequence number of the exact or last aggregated activityperiodStart- inclusive local period startperiodEnd- exclusive local period endpreviousBalance- balance before the first activityamountChanged- total account balance changenewBalance- balance after the final activityactivityCount- total activities representedmatchingActivityCount- activities matching the selected typematchingAmountChanged- signed matching activity totalmatchesFilter- whether the point contains a matching activitypendingRealizedAmount- realized partial-close result not yet included in the ledgerbalanceIncludingPending- ledger balance plus pending realized partial closespendingPositionCount- partially closed positions contributing to the pending resultpendingPositions- contributing partially closed positionsdescription- optional exact activity descriptionexternalReference- optional exact activity referenceactivities- activity breakdown
public record AccountLedgerPointDTO(LocalDateTime occurredAt, int sequenceNumber, LocalDate periodStart, LocalDate periodEnd, double previousBalance, double amountChanged, double newBalance, int activityCount, int matchingActivityCount, double matchingAmountChanged, boolean matchesFilter, double pendingRealizedAmount, double balanceIncludingPending, int pendingPositionCount, List<AccountLedgerPendingPositionDTO> pendingPositions, String description, String externalReference, List<AccountLedgerActivityBreakdownDTO> activities)
extends Record
One exact or aggregated account-ledger chart point.
- Version:
- 3.0.1
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionAccountLedgerPointDTO(LocalDateTime occurredAt, int sequenceNumber, LocalDate periodStart, LocalDate periodEnd, double previousBalance, double amountChanged, double newBalance, int activityCount, int matchingActivityCount, double matchingAmountChanged, boolean matchesFilter, double pendingRealizedAmount, double balanceIncludingPending, int pendingPositionCount, List<AccountLedgerPendingPositionDTO> pendingPositions, String description, String externalReference, List<AccountLedgerActivityBreakdownDTO> activities) Creates an instance of aAccountLedgerPointDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactivitiesrecord component.intReturns the value of theactivityCountrecord component.doubleReturns the value of theamountChangedrecord component.doubleReturns the value of thebalanceIncludingPendingrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexternalReferencerecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thematchesFilterrecord component.intReturns the value of thematchingActivityCountrecord component.doubleReturns the value of thematchingAmountChangedrecord component.doubleReturns the value of thenewBalancerecord component.Returns the value of theoccurredAtrecord component.intReturns the value of thependingPositionCountrecord component.Returns the value of thependingPositionsrecord component.doubleReturns the value of thependingRealizedAmountrecord component.Returns the value of theperiodEndrecord component.Returns the value of theperiodStartrecord component.doubleReturns the value of thepreviousBalancerecord component.intReturns the value of thesequenceNumberrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AccountLedgerPointDTO
public AccountLedgerPointDTO(LocalDateTime occurredAt, int sequenceNumber, LocalDate periodStart, LocalDate periodEnd, double previousBalance, double amountChanged, double newBalance, int activityCount, int matchingActivityCount, double matchingAmountChanged, boolean matchesFilter, double pendingRealizedAmount, double balanceIncludingPending, int pendingPositionCount, List<AccountLedgerPendingPositionDTO> pendingPositions, String description, String externalReference, List<AccountLedgerActivityBreakdownDTO> activities) Creates an instance of aAccountLedgerPointDTOrecord class.- Parameters:
occurredAt- the value for theoccurredAtrecord componentsequenceNumber- the value for thesequenceNumberrecord componentperiodStart- the value for theperiodStartrecord componentperiodEnd- the value for theperiodEndrecord componentpreviousBalance- the value for thepreviousBalancerecord componentamountChanged- the value for theamountChangedrecord componentnewBalance- the value for thenewBalancerecord componentactivityCount- the value for theactivityCountrecord componentmatchingActivityCount- the value for thematchingActivityCountrecord componentmatchingAmountChanged- the value for thematchingAmountChangedrecord componentmatchesFilter- the value for thematchesFilterrecord componentpendingRealizedAmount- the value for thependingRealizedAmountrecord componentbalanceIncludingPending- the value for thebalanceIncludingPendingrecord componentpendingPositionCount- the value for thependingPositionCountrecord componentpendingPositions- the value for thependingPositionsrecord componentdescription- the value for thedescriptionrecord componentexternalReference- the value for theexternalReferencerecord componentactivities- the value for theactivitiesrecord 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. -
occurredAt
Returns the value of theoccurredAtrecord component.- Returns:
- the value of the
occurredAtrecord component
-
sequenceNumber
public int sequenceNumber()Returns the value of thesequenceNumberrecord component.- Returns:
- the value of the
sequenceNumberrecord component
-
periodStart
Returns the value of theperiodStartrecord component.- Returns:
- the value of the
periodStartrecord component
-
periodEnd
-
previousBalance
public double previousBalance()Returns the value of thepreviousBalancerecord component.- Returns:
- the value of the
previousBalancerecord component
-
amountChanged
public double amountChanged()Returns the value of theamountChangedrecord component.- Returns:
- the value of the
amountChangedrecord component
-
newBalance
public double newBalance()Returns the value of thenewBalancerecord component.- Returns:
- the value of the
newBalancerecord 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
-
matchesFilter
public boolean matchesFilter()Returns the value of thematchesFilterrecord component.- Returns:
- the value of the
matchesFilterrecord 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
-
pendingPositions
Returns the value of thependingPositionsrecord component.- Returns:
- the value of the
pendingPositionsrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
externalReference
Returns the value of theexternalReferencerecord component.- Returns:
- the value of the
externalReferencerecord component
-
activities
Returns the value of theactivitiesrecord component.- Returns:
- the value of the
activitiesrecord component
-