Record Class AccountLedgerActivityBreakdownDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.account.AccountLedgerActivityBreakdownDTO
- Record Components:
type- activity typeactivityCount- number of activitiesamountChanged- total signed amount
public record AccountLedgerActivityBreakdownDTO(AccountLedgerEntryType type, int activityCount, double amountChanged)
extends Record
Activity-type contribution within an account-ledger report point.
- Version:
- 3.0.1
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionAccountLedgerActivityBreakdownDTO(AccountLedgerEntryType type, int activityCount, double amountChanged) Creates an instance of aAccountLedgerActivityBreakdownDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactivityCountrecord component.doubleReturns the value of theamountChangedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
AccountLedgerActivityBreakdownDTO
public AccountLedgerActivityBreakdownDTO(AccountLedgerEntryType type, int activityCount, double amountChanged) Creates an instance of aAccountLedgerActivityBreakdownDTOrecord class.- Parameters:
type- the value for thetyperecord componentactivityCount- the value for theactivityCountrecord componentamountChanged- the value for theamountChangedrecord 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. -
type
-
activityCount
public int activityCount()Returns the value of theactivityCountrecord component.- Returns:
- the value of the
activityCountrecord component
-
amountChanged
public double amountChanged()Returns the value of theamountChangedrecord component.- Returns:
- the value of the
amountChangedrecord component
-