Record Class StockHistoryDTO
java.lang.Object
java.lang.Record
com.raphaelsalles.backend.api.dto.StockHistoryDTO
- Record Components:
period- Período de referência (ex: "2023", "3T2024").revenue- Receita Líquida do período.netIncome- Lucro Líquido do período.equity- Patrimônio Líquido ao final do período.
public record StockHistoryDTO(String period, BigDecimal revenue, BigDecimal netIncome, BigDecimal equity)
extends Record
DTO para Histórico Financeiro de Ações.
Propósito: Fornecer dados para plotagem de gráficos de evolução financeira (Receita, Lucro, Patrimônio).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BigDecimalThe field for theequityrecord component.private final BigDecimalThe field for thenetIncomerecord component.private final StringThe field for theperiodrecord component.private final BigDecimalThe field for therevenuerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionStockHistoryDTO(String period, BigDecimal revenue, BigDecimal netIncome, BigDecimal equity) Creates an instance of aStockHistoryDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.equity()Returns the value of theequityrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thenetIncomerecord component.period()Returns the value of theperiodrecord component.revenue()Returns the value of therevenuerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
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). -
period
-
revenue
-
netIncome
-
equity
-