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 activity
amountChanged - actual account balance change
closingBalance - balance after the final activity
activityCount - total activities represented
matchingActivityCount - activities matching the selected type
matchingAmountChanged - signed matching activity total
pendingRealizedAmount - realized partial-close result not yet included in the ledger
balanceIncludingPending - closing balance plus pending realized partial closes
pendingPositionCount - partially closed positions contributing to the pending result
firstActivityAt - first activity timestamp
lastActivityAt - 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 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 a AccountLedgerSummaryDTO record class.
      Parameters:
      openingBalance - the value for the openingBalance record component
      amountChanged - the value for the amountChanged record component
      closingBalance - the value for the closingBalance record component
      activityCount - the value for the activityCount record component
      matchingActivityCount - the value for the matchingActivityCount record component
      matchingAmountChanged - the value for the matchingAmountChanged record component
      pendingRealizedAmount - the value for the pendingRealizedAmount record component
      balanceIncludingPending - the value for the balanceIncludingPending record component
      pendingPositionCount - the value for the pendingPositionCount record component
      firstActivityAt - the value for the firstActivityAt record component
      lastActivityAt - the value for the lastActivityAt record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • openingBalance

      public double openingBalance()
      Returns the value of the openingBalance record component.
      Returns:
      the value of the openingBalance record component
    • amountChanged

      public double amountChanged()
      Returns the value of the amountChanged record component.
      Returns:
      the value of the amountChanged record component
    • closingBalance

      public double closingBalance()
      Returns the value of the closingBalance record component.
      Returns:
      the value of the closingBalance record component
    • activityCount

      public int activityCount()
      Returns the value of the activityCount record component.
      Returns:
      the value of the activityCount record component
    • matchingActivityCount

      public int matchingActivityCount()
      Returns the value of the matchingActivityCount record component.
      Returns:
      the value of the matchingActivityCount record component
    • matchingAmountChanged

      public double matchingAmountChanged()
      Returns the value of the matchingAmountChanged record component.
      Returns:
      the value of the matchingAmountChanged record component
    • pendingRealizedAmount

      public double pendingRealizedAmount()
      Returns the value of the pendingRealizedAmount record component.
      Returns:
      the value of the pendingRealizedAmount record component
    • balanceIncludingPending

      public double balanceIncludingPending()
      Returns the value of the balanceIncludingPending record component.
      Returns:
      the value of the balanceIncludingPending record component
    • pendingPositionCount

      public int pendingPositionCount()
      Returns the value of the pendingPositionCount record component.
      Returns:
      the value of the pendingPositionCount record component
    • firstActivityAt

      public LocalDateTime firstActivityAt()
      Returns the value of the firstActivityAt record component.
      Returns:
      the value of the firstActivityAt record component
    • lastActivityAt

      public LocalDateTime lastActivityAt()
      Returns the value of the lastActivityAt record component.
      Returns:
      the value of the lastActivityAt record component