Record Class AccountLedgerPendingPositionDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.account.AccountLedgerPendingPositionDTO
- Record Components:
positionNumber- position numberpositionName- position namependingRealizedAmount- cumulative realized result awaiting final position closurepartialClosureCount- closing orders represented by the pending resultlastPartialClosureAt- most recent contributing close time
public record AccountLedgerPendingPositionDTO(long positionNumber, String positionName, double pendingRealizedAmount, int partialClosureCount, LocalDateTime lastPartialClosureAt)
extends Record
One partially closed position contributing realized results that are not yet in the durable
account ledger.
- Version:
- 3.0.1
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionAccountLedgerPendingPositionDTO(long positionNumber, String positionName, double pendingRealizedAmount, int partialClosureCount, LocalDateTime lastPartialClosureAt) Creates an instance of aAccountLedgerPendingPositionDTOrecord 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.Returns the value of thelastPartialClosureAtrecord component.intReturns the value of thepartialClosureCountrecord component.doubleReturns the value of thependingRealizedAmountrecord component.Returns the value of thepositionNamerecord component.longReturns the value of thepositionNumberrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AccountLedgerPendingPositionDTO
public AccountLedgerPendingPositionDTO(long positionNumber, String positionName, double pendingRealizedAmount, int partialClosureCount, LocalDateTime lastPartialClosureAt) Creates an instance of aAccountLedgerPendingPositionDTOrecord class.- Parameters:
positionNumber- the value for thepositionNumberrecord componentpositionName- the value for thepositionNamerecord componentpendingRealizedAmount- the value for thependingRealizedAmountrecord componentpartialClosureCount- the value for thepartialClosureCountrecord componentlastPartialClosureAt- the value for thelastPartialClosureAtrecord 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. -
positionNumber
public long positionNumber()Returns the value of thepositionNumberrecord component.- Returns:
- the value of the
positionNumberrecord component
-
positionName
Returns the value of thepositionNamerecord component.- Returns:
- the value of the
positionNamerecord component
-
pendingRealizedAmount
public double pendingRealizedAmount()Returns the value of thependingRealizedAmountrecord component.- Returns:
- the value of the
pendingRealizedAmountrecord component
-
partialClosureCount
public int partialClosureCount()Returns the value of thepartialClosureCountrecord component.- Returns:
- the value of the
partialClosureCountrecord component
-
lastPartialClosureAt
Returns the value of thelastPartialClosureAtrecord component.- Returns:
- the value of the
lastPartialClosureAtrecord component
-