Record Class AccountLedgerPendingSnapshotDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.account.AccountLedgerPendingSnapshotDTO
- Record Components:
pendingRealizedAmount- cumulative pending realized resultpendingPositionCount- contributing position countpendingPositions- contributing positions
public record AccountLedgerPendingSnapshotDTO(double pendingRealizedAmount, int pendingPositionCount, List<AccountLedgerPendingPositionDTO> pendingPositions)
extends Record
On-demand pending partial-close result at one account-ledger boundary.
- Version:
- 3.0.1
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionAccountLedgerPendingSnapshotDTO(double pendingRealizedAmount, int pendingPositionCount, List<AccountLedgerPendingPositionDTO> pendingPositions) Creates an instance of aAccountLedgerPendingSnapshotDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thependingPositionCountrecord component.Returns the value of thependingPositionsrecord component.doubleReturns the value of thependingRealizedAmountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AccountLedgerPendingSnapshotDTO
public AccountLedgerPendingSnapshotDTO(double pendingRealizedAmount, int pendingPositionCount, List<AccountLedgerPendingPositionDTO> pendingPositions) Creates an instance of aAccountLedgerPendingSnapshotDTOrecord class.- Parameters:
pendingRealizedAmount- the value for thependingRealizedAmountrecord componentpendingPositionCount- the value for thependingPositionCountrecord componentpendingPositions- the value for thependingPositionsrecord 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. -
pendingRealizedAmount
public double pendingRealizedAmount()Returns the value of thependingRealizedAmountrecord component.- Returns:
- the value of the
pendingRealizedAmountrecord 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
-