Record Class PositionCashFlowSummaryDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.position.PositionCashFlowSummaryDTO
- Record Components:
grossDividends- gross dividend incometaxWithheld- tax withheld from position incomefees- fees assigned to the positionnetDividendIncome- dividend income after withholding taxnetCashFlow- net assigned position cash flow
public record PositionCashFlowSummaryDTO(double grossDividends, double taxWithheld, double fees, double netDividendIncome, double netCashFlow)
extends Record
Summary of account cash transactions assigned to a position.
- Version:
- 3.0.4
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionPositionCashFlowSummaryDTO(double grossDividends, double taxWithheld, double fees, double netDividendIncome, double netCashFlow) Creates an instance of aPositionCashFlowSummaryDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic PositionCashFlowSummaryDTOempty()Creates an empty cash-flow summary.final booleanIndicates whether some other object is "equal to" this one.doublefees()Returns the value of thefeesrecord component.doubleReturns the value of thegrossDividendsrecord component.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thenetCashFlowrecord component.doubleReturns the value of thenetDividendIncomerecord component.doubleReturns the value of thetaxWithheldrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PositionCashFlowSummaryDTO
public PositionCashFlowSummaryDTO(double grossDividends, double taxWithheld, double fees, double netDividendIncome, double netCashFlow) Creates an instance of aPositionCashFlowSummaryDTOrecord class.- Parameters:
grossDividends- the value for thegrossDividendsrecord componenttaxWithheld- the value for thetaxWithheldrecord componentfees- the value for thefeesrecord componentnetDividendIncome- the value for thenetDividendIncomerecord componentnetCashFlow- the value for thenetCashFlowrecord component
-
-
Method Details
-
empty
Creates an empty cash-flow summary.- Returns:
- empty summary
-
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 with thecomparemethod from their corresponding wrapper classes. -
grossDividends
public double grossDividends()Returns the value of thegrossDividendsrecord component.- Returns:
- the value of the
grossDividendsrecord component
-
taxWithheld
public double taxWithheld()Returns the value of thetaxWithheldrecord component.- Returns:
- the value of the
taxWithheldrecord component
-
fees
-
netDividendIncome
public double netDividendIncome()Returns the value of thenetDividendIncomerecord component.- Returns:
- the value of the
netDividendIncomerecord component
-
netCashFlow
public double netCashFlow()Returns the value of thenetCashFlowrecord component.- Returns:
- the value of the
netCashFlowrecord component
-