Record Class BalancePerformanceReportDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.account.BalancePerformanceReportDTO
- Record Components:
metric-BalancePerformanceMetricperiod-BalancePerformancePeriodeffectiveStart-LocalDateTimeinclusive UTC report starteffectiveEnd-LocalDateTimeexclusive UTC report endopeningBalance- actual balance immediately before the report startclosingSeriesValue- final filtered series valueamountChange- final series value minus its opening valuepercentageChange- amount change divided by opening balance, or null for a zero opening balancepoints-ListofBalancePerformancePointDTOs
public record BalancePerformanceReportDTO(BalancePerformanceMetric metric, BalancePerformancePeriod period, LocalDateTime effectiveStart, LocalDateTime effectiveEnd, double openingBalance, double closingSeriesValue, double amountChange, Double percentageChange, List<BalancePerformancePointDTO> points)
extends Record
Ledger-derived account or portfolio balance-performance report.
- Version:
- 3.0.5
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionBalancePerformanceReportDTO(BalancePerformanceMetric metric, BalancePerformancePeriod period, LocalDateTime effectiveStart, LocalDateTime effectiveEnd, double openingBalance, double closingSeriesValue, double amountChange, Double percentageChange, List<BalancePerformancePointDTO> points) Creates an instance of aBalancePerformanceReportDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theamountChangerecord component.doubleReturns the value of theclosingSeriesValuerecord component.Returns the value of theeffectiveEndrecord component.Returns the value of theeffectiveStartrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metric()Returns the value of themetricrecord component.doubleReturns the value of theopeningBalancerecord component.Returns the value of thepercentageChangerecord component.period()Returns the value of theperiodrecord component.points()Returns the value of thepointsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BalancePerformanceReportDTO
public BalancePerformanceReportDTO(BalancePerformanceMetric metric, BalancePerformancePeriod period, LocalDateTime effectiveStart, LocalDateTime effectiveEnd, double openingBalance, double closingSeriesValue, double amountChange, Double percentageChange, List<BalancePerformancePointDTO> points) Creates an instance of aBalancePerformanceReportDTOrecord class.- Parameters:
metric- the value for themetricrecord componentperiod- the value for theperiodrecord componenteffectiveStart- the value for theeffectiveStartrecord componenteffectiveEnd- the value for theeffectiveEndrecord componentopeningBalance- the value for theopeningBalancerecord componentclosingSeriesValue- the value for theclosingSeriesValuerecord componentamountChange- the value for theamountChangerecord componentpercentageChange- the value for thepercentageChangerecord componentpoints- the value for thepointsrecord 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. -
metric
-
period
-
effectiveStart
Returns the value of theeffectiveStartrecord component.- Returns:
- the value of the
effectiveStartrecord component
-
effectiveEnd
Returns the value of theeffectiveEndrecord component.- Returns:
- the value of the
effectiveEndrecord component
-
openingBalance
public double openingBalance()Returns the value of theopeningBalancerecord component.- Returns:
- the value of the
openingBalancerecord component
-
closingSeriesValue
public double closingSeriesValue()Returns the value of theclosingSeriesValuerecord component.- Returns:
- the value of the
closingSeriesValuerecord component
-
amountChange
public double amountChange()Returns the value of theamountChangerecord component.- Returns:
- the value of the
amountChangerecord component
-
percentageChange
Returns the value of thepercentageChangerecord component.- Returns:
- the value of the
percentageChangerecord component
-
points
-