Record Class SalesTrendRow
java.lang.Object
java.lang.Record
app.model.SalesTrendRow
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LocalDateThe field for thesalesDaterecord component.private final BigDecimalThe field for thesalesRevenuerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSalesTrendRow(LocalDate salesDate, BigDecimal salesRevenue) Creates an instance of aSalesTrendRowrecord 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 thesalesDaterecord component.Returns the value of thesalesRevenuerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
salesDate
The field for thesalesDaterecord component. -
salesRevenue
The field for thesalesRevenuerecord component.
-
-
Constructor Details
-
SalesTrendRow
Creates an instance of aSalesTrendRowrecord class.- Parameters:
salesDate- the value for thesalesDaterecord componentsalesRevenue- the value for thesalesRevenuerecord 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). -
salesDate
Returns the value of thesalesDaterecord component.- Returns:
- the value of the
salesDaterecord component
-
salesRevenue
Returns the value of thesalesRevenuerecord component.- Returns:
- the value of the
salesRevenuerecord component
-