Record Class SearchResultDTO
java.lang.Object
java.lang.Record
com.raphaelsalles.backend.api.dto.SearchResultDTO
- Record Components:
ticker- Código do ativo (ex: VALE3).name- Nome comercial da empresa ou ativo.type- Tipo do ativo (Ação, FII, ETF).sector- Setor de atuação da empresa.active- Indica se o ativo está ativo para negociação.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theactiverecord component.private final StringThe field for thenamerecord component.private final StringThe field for thesectorrecord component.private final StringThe field for thetickerrecord component.private final AssetTypeThe field for thetyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSearchResultDTO(String ticker, String name, AssetType type, String sector, boolean active) Creates an instance of aSearchResultDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanactive()Returns the value of theactiverecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.sector()Returns the value of thesectorrecord component.ticker()Returns the value of thetickerrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
ticker
-
name
-
type
-
sector
-
active
private final boolean activeThe field for theactiverecord component.
-
-
Constructor Details
-
SearchResultDTO
Creates an instance of aSearchResultDTOrecord class.
-
-
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. -
ticker
-
name
-
type
-
sector
-
active
-