Record Class PositionUtil.PositionOrderReporting
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.radicle.util.position.PositionUtil.PositionOrderReporting
- Record Components:
order- source orderbookCostChange- signed cost-basis change in the account currencyrealizedGainLoss- realized gain or loss in the account currency
- Enclosing class:
PositionUtil
public static record PositionUtil.PositionOrderReporting(PositionOrder order, Double bookCostChange, Double realizedGainLoss)
extends Record
Derived reporting values for one
PositionOrder.- Version:
- 3.0.1
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionPositionOrderReporting(PositionOrder order, Double bookCostChange, Double realizedGainLoss) Creates an instance of aPositionOrderReportingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebookCostChangerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.order()Returns the value of theorderrecord component.Returns the value of therealizedGainLossrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PositionOrderReporting
Creates an instance of aPositionOrderReportingrecord class.- Parameters:
order- the value for theorderrecord componentbookCostChange- the value for thebookCostChangerecord componentrealizedGainLoss- the value for therealizedGainLossrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
order
-
bookCostChange
Returns the value of thebookCostChangerecord component.- Returns:
- the value of the
bookCostChangerecord component
-
realizedGainLoss
Returns the value of therealizedGainLossrecord component.- Returns:
- the value of the
realizedGainLossrecord component
-