Record Class PerformanceReportDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.performance.PerformanceReportDTO
- Record Components:
records-ListofPerformanceRecordDTOspositionRecordTotals-PositionRecordTotalstransactionRecordTotals-TransactionRecordTotals
public record PerformanceReportDTO(List<PerformanceRecordDTO> records, PositionRecordTotals positionRecordTotals, TransactionRecordTotals transactionRecordTotals)
extends Record
DTO representation of account performance over time using positions and transactions.
- Version:
- 2.0.3
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionPerformanceReportDTO(List<PerformanceRecordDTO> records, PositionRecordTotals positionRecordTotals, TransactionRecordTotals transactionRecordTotals) Creates an instance of aPerformanceReportDTOrecord 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 thepositionRecordTotalsrecord component.records()Returns the value of therecordsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransactionRecordTotalsrecord component.
-
Constructor Details
-
PerformanceReportDTO
public PerformanceReportDTO(List<PerformanceRecordDTO> records, PositionRecordTotals positionRecordTotals, TransactionRecordTotals transactionRecordTotals) Creates an instance of aPerformanceReportDTOrecord class.- Parameters:
records- the value for therecordsrecord componentpositionRecordTotals- the value for thepositionRecordTotalsrecord componenttransactionRecordTotals- the value for thetransactionRecordTotalsrecord 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). -
records
-
positionRecordTotals
Returns the value of thepositionRecordTotalsrecord component.- Returns:
- the value of the
positionRecordTotalsrecord component
-
transactionRecordTotals
Returns the value of thetransactionRecordTotalsrecord component.- Returns:
- the value of the
transactionRecordTotalsrecord component
-